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 28505] - [PATCH] File paths to imported build files should not be canonicalized
Date Mon, 26 Apr 2004 19:45:54 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=28505>.
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=28505

[PATCH] File paths to imported build files should not be canonicalized





------- Additional Comments From jglick@netbeans.org  2004-04-26 19:45 -------
In such a case you could make the symlink to /a/scripts, not /a/scripts/b, and

  <import file="/usr/home/peter/a_scripts/b/import.xml"/>

Clearly in this case /a/scripts is intended to be a whole (you cannot use the b
subdir on its own), so linking to just a part of it sounds dubious to me.

I realize that there are cases where having the canonical path would be handy,
but is it worth the (possibly unsolvable) problems for those people who *don't*
want the canonical path? Other Ant tasks (in particular, <property>) don't
magically traverse symlinks or otherwise canonicalize file paths.

Maybe better to have an explicit task to canonicalize a file path and store the
result in a new property, if that's really what you want. Or perhaps an extra
attribute 'canonicalize' on <import> (default should be false, IMHO).

BTW import.html in the manual still states

"Important: We have not finalized how relative file references will be resolved
in deep/complex build hierarchies -such as what happens when an imported file
imports another file. Use absolute references for enhanced build file stability,
especially in the imported files."

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


Mime
View raw message