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 21494] New: - <property>: version of location to search parent dirs
Date Fri, 11 Jul 2003 10:40:27 GMT
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

           Summary: <property>: version of location to search parent dirs
           Product: Ant
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: igor@fastmail.fm


I have found it would be very useful to have an version of property.location
that searches for parent directories. For example, I would like to be able to
write in a nested build.xml file:

<property name="build" searchparents="build"/>

<property name="global-properties" searchparents="global.properties"/>

which would set build to the first build dir found in project's base dir or its
parents and similarly for global-properties. If such file or directory does not
exist, searchparents would work exactly as current location attribute.

In this way I can safely invoke ant against build.xml in an arbitrary
subdirectory and it will properly initialize itself without the need to specify
absolute path names in the environment or on command line.

I emulate this functionality by wrapping ant invocation into a shell script that
does that for all properties that I need to search but it would be nice to have
the option in the ant directly.

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


Mime
View raw message