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 28403] New: - Floating attribute for import task
Date Thu, 15 Apr 2004 08:13:10 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=28403>.
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=28403

Floating attribute for import task

           Summary: Floating attribute for import task
           Product: Ant
           Version: 1.6.1
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: johan.vromans@nl.compuware.com


To increase the usefulness of the import task, I propose to add an optional
boolean attribute "float" with the following semantics, if set: if the named
file to be imported cannot be found, retry one level higher in the file
hierarchy, and so on. This makes it possible to put common files (with common
properties, taskdefs etc.) somewhere higher in the file tree, so that all build
scripts can load them without actually knowing the exact path to the file.

This is quite similar to the --find command line option, although in this case
the complete name of the file is used instead of just the final part. For
example, when the following import

    <import file="x/common.xml" float="true"/>

were used from /a/b/c/d/build.xml, the following file names would be tried:

    /a/b/c/d/x/common.xml
    /a/b/c/x/common.xml
    /a/b/x/common.xml
    ...

If a file is find, the search is terminated.

An example implementation (diff to the 1.6.1. source tree) is attached.

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


Mime
View raw message