ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mindspin311 <>
Subject Re: ant global properies (variable)
Date Wed, 27 Aug 2008 17:57:40 GMT

Here's a simple version of what I'm trying to do.

<target name="test">
  <foreach list="${files}"
	          		delimiter=" "
	          		inheritall="true" />

  <echo message="unit.test.failure" /> <!-- Always false even when set to
true in parse!!!!! -->
  <!-- I want a conditional to be here that causes a failure iff there was
one or more failed unit tests (i.e. unit.test.failure is set to true -->


<target name="parse">
  <exec dir="." executable="phpunit" failonerror="false" 
  	  	<arg line="--log-xml bamboo-log-${basefile}.xml ${basefile} ${file}"

        <equals arg1="${unit.test.failure.code}" arg2="0" />
		<property name="unit.test.failure" value="true" />
    	<echo message="THIS TEST SUCCEEDED" />
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