ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpyork <>
Subject Ant saving property file settings in memory?????
Date Fri, 25 Jan 2008 21:55:23 GMT

Ok, I would like to say thanks to everyone who has helped with the last two
postings I have had and hopefully this will be the last one for my issue.

Below is what I have setup:

<property file=""/>

	<target name="buildresults" > 		
              <if>     <equals arg1="${buildresults}" arg2="failed" /> 				
                        <fail message="test fail test fail" /> 	
                           <echo message="success success" /> 			

This code works, but my final issue is that it seems ant store what
buildresults is set to at the start of the build and in my code I have that
setting changing and there fore it does not spit out the correct result.  So
right now if buildresults gets changed to successful in the middle of my
script and it was set to failed when it started the end result is that it
fails, when it should be successful.  Same applies when I start up the
script and the beginning setting is successful and it gets changed to
failed, it spits out "success success" instead of failing.

Any way around this?
View this message in context:
Sent from the Ant - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message