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 26809] New: - Ability to set a property for a value in a fileset
Date Mon, 09 Feb 2004 22:51:29 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=26809>.
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=26809

Ability to set a property for a value in a fileset

           Summary: Ability to set a property for a value in a fileset
           Product: Ant
           Version: 1.6.1beta1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: nathanr@nathanr.net


Yesterday, I had the task of writing an ant build script to unzip a zip file in the form zipname-x.y.z.zip.

That's fine because you can not care about the version number and just do this:

    <echo message="Unzipping Jetty Java Servlet Engine / HTTP Server"/>
    <unzip dest=".">
      <fileset dir=".">
	<include name="Jetty-*-all.zip"/>
      </fileset>
    </unzip>

However, after that, I need the name of the directory it created, as I need to put some files
in there, 
then start up Jetty. Now, clearly a rule such as:

    <firstfilematch property="jettydir.tmp">
      <fileset dir=".">
	<include name="Jetty-*"/>
	<exclude name="Jetty-*-all.zip"/>
      </fileset>
    </firstfilematch>

will do the job. I've written the task (we use it internally), and will attach it to the bug
report.

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


Mime
View raw message