ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn <>
Subject Lost Property Value
Date Fri, 15 Aug 2003 03:47:13 GMT

Am I losing a property value or can the value of a property set in one 
target (called as a depends) not be used in another?

For instance,

my build target depends on  a get_pass target which has: 		<exec 
executable="gpg" outputproperty="the_value">
		<echo>the_value in get_pass=${the_value}

and my output is:
     			[echo] the_value in get_pass=testtest

testtest is the correct value that should be returned by ${the_value}, so 
far so good.

but then build uses a target which is called via a foreach task that has:

		<echo>the_value seems lost here:${the_value}</echo>

and results in:

			[echo] the_value seems lost here:${the_value}

Is this how Ant is supposed to behave, is this due to the alpha status of 
1.6, is this a bug in the ant-contrib (ie foreach task) side of things?  Is 
there anything I can do?

--------------------below are build and targets ----------------- 

	<target name="build" depends="get_pass">
		<foreach target="" param="gpg.param" delimiter=" ">
		<fileset refid="fs"/>
		<echo>(in build) for file in:${gpg.param}</echo>
	 	 	<target name="">
		<echo>(in for file:${gpg.param}</echo>
		<exec executable="gpg" os="RH Linux" errorproperty="none" 
			<arg value="--symmetric"/>
			<arg value="--force-mdc"/>
			<arg value="--ignore-mdc-error"/>
			<arg value="--passphrase-fd"/>
			<arg value="0"/>
			<arg value="${gpg.param}"/>
		 		<echo>the_value seems lost here:${the_value}</echo>


Happily using M2, Opera's revolutionary e-mail client:

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

View raw message