ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrick Martin <antu...@gmail.com>
Subject Re: Scope of property.
Date Wed, 27 Jul 2005 14:13:55 GMT
Hi,

I tried the following:

>>>>> build.xml
<project name="test" default="target2">
	<target name="target1">
		<property file="target1.properties" />
	</target>
	<target name ="target2" depends="target1">
		<echo message="a = ${a}" />
	</target>
</project>

>>>>> target1.properties
a = AAAAAAAAA

and output is:
Buildfile: build.xml

target1:

target2:
     [echo] a = AAAAAAAAA

BUILD SUCCESSFUL
Total time: 0 seconds

Which is correct. Could you be more specific?

On 7/27/05, hind.lwahhabi@accenture.com <hind.lwahhabi@accenture.com> wrote:
> 
> Hello guys,
> i noticed  a strange behaviour i never came accross before:
> <target name="target1">
> <property file="target1.properties"/>
> </target>
> 
> <target name ="target2" depends="target1"/>
> 
> the problem is that the file-defined properties in target1 are not recognized in target2.(i
am using ant 1.6)
> 
> Is it normal?
> 
> -
> 
> 
> This message is for the designated recipient only and may contain privileged, proprietary,
or otherwise private information.  If you have received it in error, please notify the sender
immediately and delete the original.  Any other use of the email by you is prohibited.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message