Netbeans 脚本在不同的系统上有不同的行为
我为我的netbeans java项目生成了默认的ant脚本,它在我的windows桌面上运行得非常好,我得到了包含lib文件夹的dist文件夹。Netbeans 脚本在不同的系统上有不同的行为,netbeans,ant,Netbeans,Ant,我为我的netbeans java项目生成了默认的ant脚本,它在我的windows桌面上运行得非常好,我得到了包含lib文件夹的dist文件夹。 现在我在debian系统上有了相同的文件和文件夹,并运行ant,但是dist文件夹在lib文件夹中从不包含依赖项jar 项目中的设置等都是正确的 我在Debian6.0.3中使用Ant1.8.0,在WindowsXP中使用Ant1.8.2 下面是由netbeans生成的ant脚本 有什么问题吗?根据我在Windows环境下开发,然后在Linux上部署
现在我在debian系统上有了相同的文件和文件夹,并运行ant,但是dist文件夹在lib文件夹中从不包含依赖项jar 项目中的设置等都是正确的 我在Debian6.0.3中使用Ant1.8.0,在WindowsXP中使用Ant1.8.2 下面是由netbeans生成的ant脚本
有什么问题吗?根据我在Windows环境下开发,然后在Linux上部署的经验,可能有一些问题:
已跳过,因为未设置属性“do.mkdist” 您可以在build.xml文件中找到以下内容:
<condition property="do.mkdist">
<and>
<isset property="do.archive"/>
<isset property="libs.CopyLibs.classpath"/>
<not>
<istrue value="${mkdist.disabled}"/>
</not>
</and>
</condition>
在这之后,Debian也可以正常工作。ant脚本大约为60KB,它实际上是默认的netbeans脚本,我没有编辑任何内容。您可以在上面找到脚本。
libs.CopyLibs.classpath=tools/org-netbeans-modules-java-j2seproject-copylibstask.jar