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 26985] New: - apply task using filelist always applies executable
Date Mon, 16 Feb 2004 18:57:34 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=26985>.
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=26985

apply task using filelist always applies executable

           Summary: apply task using filelist always applies executable
           Product: Ant
           Version: 1.6.1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: michael_brouhard@mentor.com


When using the apply task with the new filelist capability in 1.6, the 
executable is always applied to the sources, even if the targets have a newer 
timestamp.

In the test below, if you use a fileset, things work correctly. Comment out the 
fileset and uncomment the filelist and the source files are always compiled.

<project name="applyFilelistExperiment" default="all" basedir=".">

    <target name="all">
      <mkdir dir="obj"/>
      <apply executable="gcc" dest="obj">
          <arg value="-c"/>
          <arg value="-o"/>
          <targetfile/>
          <mapper type="glob" from="*.c" to="*.o"/>
          <!--fileset dir="src" includes="*.c"/--> 
          <filelist dir="src" files="foo.c,bar.c"/> 

      </apply>
    </target>

    <target name="clean">
       <delete dir="obj"/>
    </target>

    

</project>

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


Mime
View raw message