ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 40129] - Wrong path calculation in <copy> when basedir set from command line
Date Thu, 14 Dec 2006 03:46:01 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40129>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40129


hrishikesh.date@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX




------- Additional Comments From hrishikesh.date@gmail.com  2006-12-13 19:46 -------
Refer to the test.sh attached by 

Case 1:

cd build/node
ant

Here we don't pass the basedir property, so it is set by the Project class by
parsing the build.xml

Case 2:
cd ../..
ant -Dbasedir=build/node

Here basedir is passed using -D option. Properties passed using -D are JVM
properties and not Ant properties, i.e the JVM will set the system properties
before it loads Ant MainClass.

It is by design that ant doesn't overwrite the properties already set, since JVM
doesn't do autoconvertion os strings to paths lkie ant, the basedir property is
set to a TEXT valu of build/node.

Consider
<property name="xxxx" location="yyyy"/> here the absolute path of yyyy will be
assigned to the property name xxxx, however since JVM doesn't know the specific
type of the property using -Dxxxx=yyyy won't translate the value to a absolute path.

if basedir needs to be passed to ant using -D then make sure you set the value
to the absolute path.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message