Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 436012

Summary: dev-java/ant-core-1.8.4-r1 can't override system properties for ant
Product: Gentoo Linux Reporter: Ivan Baidakou (dmol) <the.dmol>
Component: [OLD] JavaAssignee: Java team <java>
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Attachments: build.xml

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, 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]
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" >

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

     [echo] home=/tmp

Total time: 0 seconds

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