I have a set of assembly files, some of which are causing others to import them first. The end of lines may or may not have a specific purpose (for example, "copyother"). I want to call this from my main build file if this goal is defined at the end of the build script line. How can i do this?
Part of the calling script:
<property name="build.dir" value="${projectDir}/build"/>
<import file="${build.dir}/build_libs.xml"/>
...
<target name="pre-package" depends=" clean,
init,
compile-src,
copy-src-resources,
copy-app-resources,
copyother,
compile-tests,
run-junit-tests"/>
I do not want each project to define a copyother goal. How can I make a conditional call to ant?
source
share