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: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]