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

<apply> on a <classfileset> does not work

           Summary: <apply> on a <classfileset> does not work
           Product: Ant
           Version: 1.6.2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Core tasks
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


<apply> on a <classfileset> appears to operate on every file that the
classfileset could potentially include, rather than only on the files the
rootclass depends on. <apply> on a regular <fileset> behaves as expected.

Paradoxially, the <jar> task applied to the very same classfileset, includes
only the 'depends on' files.

Here is a small example:

==================================================
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="play" name="PLAY">

    <property name="out.dir" location="ant"/>
    <property name="root.dir" location="${basedir}"/>
    <property name="src.dir" location="${root.dir}/src"/>
    <property name="build.dir" location="${out.dir}/build"/>
    <property name="build.classes.dir" location="${build.dir}/classes"/>

    <classfileset dir="${build.classes.dir}" id="playcfs"
rootclass="genomix.app.alignView.Jalopy" />

    <fileset dir="${build.classes.dir}" id="playfs">
        <include name="**/Assagai*"/>
    </fileset>

    <target name="play">
        <jar destfile="/tmp/play.jar">
            <fileset refid="playcfs"/>  
        </jar>
        <apply executable="echo"  output="/tmp/play.cfs" parallel="true"
append="false" >
            <fileset refid="playcfs"/>
        </apply>
        <apply executable="echo" output="/tmp/play.fs" parallel="true"
append="false" >
            <fileset refid="playfs"/>
        </apply>
    </target>

</project>
=============================================
After running the build:

"play.jar" contains 149 files, a small subset of the build directory tree.
"play.cfs" contains 1021 files, the total number of files in the build tree.
"play.fs" contains 8 files, which is the correct subset based on the selector.

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

Reply via email to