DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21494>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21494

<property>: version of location to search parent dirs





------- Additional Comments From [EMAIL PROTECTED]  2003-07-11 18:00 -------
The above patch takes a different approach to extend <property>. It adds
searchparents as a boolean attribute that can be used either with location or
file. When set to true it makes location or file to search for their argument in
parents directories if it is a relative path. With this version one can not only
write:

<property name="build" location="igor"  searchparents="on"/>

but also:

<property file="global.properties" searchparents="on"/>

to make ant to search for global.properties in base dir or its parents.

Such functionality can be implement withthe first version of the patch by the
following 2 liner:

<property name="global-location" searchparents="global.properties"/>
<property file="${global-location}"/>

but it require to introduce unnecessary global-location property.

On the other hand the patch is bigger and more intrusive since it has to change
setLocation/setFile signatures from File to String as File arguments are already
resolved into absolute path and searchparents option requires access to the
original relative path.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to