ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew G. Tereschenko" <...@ibis.odessa.ua>
Subject Overriding properties
Date Tue, 14 Nov 2000 14:09:17 GMT
Hi,

What is expected result of this script in
Ant1.1 and Ant1.2 ??

<?xml version="1.0"?>

<project name="sample" default="all" basedir=".">

    <target name="all" depends="sample1,sample2"/>

    <target name="sample1">
	<property name="prop1" value="sample1"/>
	<echo message="${prop1}"/>
    </target>

    <target name="sample2">
	<property name="prop1" value="sample2"/>
	<echo message="${prop1}"/>
    </target>

</project>


What NEW ???
* Semantics of <property> has changed again in the hope to be more
intuitive. ${} expansion now happens at runtime and <property> tags
living inside of targets only take effect if they are visited at
runtime.

Take a test ...


=============================
Andrew G. Tereschenko
Software Engineer
Integrated Banking Information Systems
tag@ibis.odessa.ua




Mime
View raw message