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=7324>.
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=7324

uptodate or fileset task allow combining of filesets

           Summary: uptodate or fileset task allow combining of filesets
           Product: Ant
           Version: 1.4
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Core tasks
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I would like to suggest an enhancement to the Uptodate task (and
Condition/uptodate).  Maybe even more generally to the Fileset task.

I tried to include multiple srcfiles filesets, but the task only seemed to use
the first one.  It didn't complain about the others, but it also didn't seem to
use them.  While it would be nice if it errored out when finding more, it would
be much more useful if it used all filesets specified.

A better generalization would be to allow multiple filesets to be combined into
a single fileset.  Or allow a fileset to contain at least one level of filesets.
This would be useful if I wanted to exclude **test.java, but wanted to include
Retest.java  (ok, this example is a bit contrived).  Another example would be
wanting to exclude server/**, but wanting to include server/Locator.java.
Sure, every include file could be specified, but that seems likely to make an
uglier build file.

Here is how it has to be done now:
      <fileset dir="${classes.dir}">
        <patternset refid="production.classes.patternset"/>
        <exclude name="**/server/**"/>
      </fileset>
      <fileset dir="${classes.dir}">
        <include name="**/server/Locator.class"/>
      </fileset>
But, this doesn't work in places like the uptodate task which only take one 
fileset.


Here is an example of what would be nice to check with the uptodate check:
  <property name="build.dir" value="./build" />
  <property name="classes.dir" value="${build.dir}/classes" />
  <property name="config.dir" value="./config" />
<uptodate property="jar.required"  >
  <srcfiles dir= "${classes.dir}" includes="**/*.java"/>
  <srcfiles dir= "${config.dir}" includes="Manifest.txt"/>
  <mapper type="merge" to="${build.dir}/application.jar"/>
</uptodate>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to