NetBeans ANT 目标不是 运行?
NetBeans ANT target not running?
我正在尝试从 build.xml 文件中执行自定义 ANT 目标,但由于某种原因它一直被忽略。下面是我的实现:
<project name="MyModuleSuite" basedir=".">
<description>Builds the module suite MyModuleSuite.</description>
<import file="nbproject/build-impl.xml"/>
<target name="-post-compile" depends="build">
<ant antfile="nbproject/build-impl.xml" target="nbms" />
</target>
</project>
出于某种原因,每当 build 目标在我项目的 "clean and build" 期间执行时,什么也没有发生。是否有我应该用于 depends 值的特定目标?
您需要覆盖构建目标并使其依赖于原始目标 (suite.build) 和您想要 运行 (nbms) 的额外目标。
<target name="build" depends="suite.build,nbms">
</target>
有关如何自定义构建的详细信息,请参阅位于您的 NetBeans 安装中的 harness/README
。
我正在尝试从 build.xml 文件中执行自定义 ANT 目标,但由于某种原因它一直被忽略。下面是我的实现:
<project name="MyModuleSuite" basedir=".">
<description>Builds the module suite MyModuleSuite.</description>
<import file="nbproject/build-impl.xml"/>
<target name="-post-compile" depends="build">
<ant antfile="nbproject/build-impl.xml" target="nbms" />
</target>
</project>
出于某种原因,每当 build 目标在我项目的 "clean and build" 期间执行时,什么也没有发生。是否有我应该用于 depends 值的特定目标?
您需要覆盖构建目标并使其依赖于原始目标 (suite.build) 和您想要 运行 (nbms) 的额外目标。
<target name="build" depends="suite.build,nbms">
</target>
有关如何自定义构建的详细信息,请参阅位于您的 NetBeans 安装中的 harness/README
。