ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filip Hanik" <>
Subject Re: Fully Automated Builds
Date Fri, 19 Jan 2001 01:41:20 GMT
in your batch file (or shell script)
you can actually invoke two targets twice

for example would look like this

ant -buildfile main.xml anttarget1 (anttarget1 invokes compile.xml)
ant  -buildfile main.xml anttarget2 (anttarget2 invokes email.xml)

or you can do as Diane suggested, build the latest CVS files, and there is
an attribute on the <javac> task that will not break the build.


PS. Diane also suggested that you don't have to split it up into separate
build files, the <ant> task can simple invoke a target in the same file.
this will applu to the script example

Namaste - I bow to the divine in you.
Filip Hanik
Technical Architect

----- Original Message -----
From: "Beaumont Muni" <>
To: <>
Sent: Thursday, January 18, 2001 5:15 PM
Subject: Re: Fully Automated Builds


In reading up on the postings pertaining to this subject, I have been trying
some things out, specifically what was that recommended by Filip Hanik. I
tried separating my build task into 2 separate processes. The first being
the process to do a javac, and the second is to email the resulting log file
from the first process. So thus I have e.g. compile.xml and email.xml.  I
then invoked a main test.xml ant file in which I used  <ant...> invoke these
two xml files (i.e. compile.xml followed by email.xml). I find that if the
first process or xml, (the javac task) builds successfully, then the second
email process or xml is invokable and so the process completes as expected.
If the first process  fails, then the second process is not even touched.
Ant bails all the way out.

My question is how do I can I continue to get the second xml to run inspite
of the failure of the first one? Our automation process requires the second
one to run - regardless.


Beaumont Muni

View raw message