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 31170] New: - Add resolve task
Date Fri, 10 Sep 2004 16:44:56 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=31170>.
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=31170

Add resolve task

           Summary: Add resolve task
           Product: Ant
           Version: 1.6.1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: vadimk@quadrus.com


I would like to have a task where you can create a file set that would find one
file and have the task set a property with the full path to that file. For example

<resolve property="filename">
     <fileset dir="${MyDir}">
           <include name="**/myfile.xml" />
     </fileset>
</resolve>

after this task is run the property filename would have the full path to the
file. The task would have to check if the fileset captures more than one file,
potentially we could have an option to either fail or to capture the first match.

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


Mime
View raw message