[java-sig-commits] [Bug 797525] New: ant task exec outputproperty completely broken
bugzilla at redhat.com
bugzilla at redhat.com
Sun Feb 26 13:37:20 UTC 2012
Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.
Summary: ant task exec outputproperty completely broken
https://bugzilla.redhat.com/show_bug.cgi?id=797525
Summary: ant task exec outputproperty completely broken
Product: Fedora
Version: 16
Platform: x86_64
OS/Version: Linux
Status: NEW
Severity: urgent
Priority: unspecified
Component: ant
AssignedTo: jcapik at redhat.com
ReportedBy: briemers at redhat.com
QAContact: extras-qa at fedoraproject.org
CC: akurtako at redhat.com, mmatejov at redhat.com,
java-sig-commits at lists.fedoraproject.org,
jcapik at redhat.com
Classification: Fedora
Story Points: ---
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Created attachment 565894
--> https://bugzilla.redhat.com/attachment.cgi?id=565894
simple example to reproduce the bug
Description of problem:
When the exec outputproperty task is used twice with the same outputproperty
name, the outputproperty keeps the value of the first execution. This was not
true in prior versions, and is badly breaking my ant scripts. The obvious
workaround not to use the same outputproperty name twice does not work, because
there is no clear way to do that within a loop.
Version-Release number of selected component (if applicable):
ant-1.8.2-6.fc16.noarch
How reproducible:
100%
Steps to Reproduce:
1. ant -f test.xml
2. ant -f test2.xml
3.
Actual results:
[briemers at briemersw ant]$ ant -f test.xml test
Buildfile: /autohome/docbill/workspace/reports.fte2/ant/test.xml
test:
[echo] value = a
[echo] value = a
[echo] value = a
BUILD SUCCESSFUL
Total time: 1 second
[briemers at briemersw ant]$ ant -f test2.xml
Buildfile: /autohome/docbill/workspace/reports.fte2/ant/test2.xml
test:
[echo] value = a
[echo] value2 = a
[echo] value = b
[echo] value2 = a
[echo] value = c
[echo] value2 = a
BUILD SUCCESSFUL
Total time: 1 second
Expected results:
[briemers at briemersw ant]$ ant -f test.xml test
Buildfile: /autohome/docbill/workspace/reports.fte2/ant/test.xml
test:
[echo] value = a
[echo] value = b
[echo] value = c
BUILD SUCCESSFUL
Total time: 1 second
[briemers at briemersw ant]$ ant -f test2.xml
Buildfile: /autohome/docbill/workspace/reports.fte2/ant/test2.xml
test:
[echo] value = a
[echo] value2 = a
[echo] value = b
[echo] value2 = b
[echo] value = c
[echo] value2 = c
BUILD SUCCESSFUL
Total time: 1 second
Additional info:
--
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the java-sig-commits
mailing list