Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 436012 - dev-java/ant-core-1.8.4-r1 can't override system properties for ant
Summary: dev-java/ant-core-1.8.4-r1 can't override system properties for ant
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-23 18:12 UTC by Ivan Baidakou (dmol)
Modified: 2015-07-27 10:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.xml (build.xml,177 bytes, text/plain)
2012-09-23 18:13 UTC, Ivan Baidakou (dmol)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Baidakou (dmol) 2012-09-23 18:12:57 UTC
When I launch 
$ant -Duser.home=/tmp -f build.xml
it should output "/tmp" for provided build.xml, but is uses my real user home instead. 
The bug seems to be fixed in upstream  https://issues.apache.org/bugzilla/show_bug.cgi?id=51792, but I can't found the patch. 

Reproducible: Always
Comment 1 Ivan Baidakou (dmol) 2012-09-23 18:13:25 UTC
Created attachment 324730 [details]
build.xml
Comment 2 Patrice Clement gentoo-dev 2015-07-27 10:54:47 UTC
monsieurp@epsilon ~/ant $ ant -version
Apache Ant(TM) version 1.9.1 compiled on March 15 2015
monsieurp@epsilon ~/ant $ cat demo.xml
<?xml version="1.0" encoding="UTF-8"?>
<project default="dist" basedir="." name="Groovy" >

    <target name="dist" >
                <echo>home=${user.home}</echo>
    </target>

</project>
monsieurp@epsilon ~/ant $ ant -Duser.home=/tmp -f demo.xml
Buildfile: /home/monsieurp/ant/demo.xml

dist:
     [echo] home=/tmp

BUILD SUCCESSFUL
Total time: 0 seconds

This bug seems to have been solved in recent versions of Ant. Reopen if you still encounter the issue.