You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Schmolzi, Christian" <Ch...@t-systems.de> on 2001/08/15 08:21:14 UTC

Continue build process after one target fails?

Hi,

I've set up a automated build process with Ant 1.3 in which several 
independant components are build, each one in their own buildfile.
There exists an "main" buildfile build-all.xml with generally looks
like

<project name="all-components" basedir="." default="all">

	<target name="all" depends="compA, compB, compC" />

	<target name="compA">
		<ant antfile="build-A.xml" />
	</target>

	<target name="compB>
		<ant antfile="build-B.xml" />
	</target>

	<target name="compC">
		<ant antfile="build-C.xml" />
	</target>

</project>

and several "build-X.xml" buildfiles for the single components.
The problem is, if one of the components A, B or C fails to build,
the whole build-process is stopped. Is there a possibility to
force Ant to continue even if one or more sub-targets fail to
build?

Thank you very much,
Christian Schmolzi