DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6952>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6952
property value not set correctly
Summary: property value not set correctly
Product: Ant
Version: 1.5 alpha (nightly)
Platform: Other
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: Other
Component: Core
AssignedTo: ant-dev@jakarta.apache.org
ReportedBy: rafael@hyglo.com
When using the build.xml included at the end of this message we get the
following output:
Buildfile: build.xml
package-all-good:
package-a:
[echo] Package a created
package-b:
[echo] Package b created
package-c:
[echo] Package c created
package-a:
[echo] Package a created
package-b:
[echo] Package a created
package-c:
[echo] Package a created
package-all-bad:
all:
BUILD SUCCESSFUL
Total time: 4 seconds
The build.xml file is:
<?xml version="1.0" encoding="UTF-8"?>
<project basedir=".." default="all" name="test">
<!-- set global properties for this build -->
<property environment="env"/>
<target name="all" depends="package-all-good, package-all-bad"/>
<target name="package-all-good">
<antcall target="package-a"/>
<antcall target="package-b"/>
<antcall target="package-c"/>
</target>
<target name="package-all-bad"
depends="package-a, package-b, package-c"/>
<target name="package-a">
<property name="var" value="a"/>
<echo message="Package ${var} created"/>
</target>
<target name="package-b">
<property name="var" value="b"/>
<echo message="Package ${var} created"/>
</target>
<target name="package-c">
<property name="var" value="c"/>
<echo message="Package ${var} created"/>
</target>
</project>
I would expect the result of the package-* tagets to yield the same results
in both targets: package-all-good, package-all-bad. My expected result is
that of the target package-all-good.
Thanks for your time.
Rafa
--
To unsubscribe, e-mail: <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>
|