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 4347] New: - Apply parallel ignores skipemptyfilesets
Date Mon, 22 Oct 2001 20:25:14 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=4347>.
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=4347

Apply parallel ignores skipemptyfilesets

           Summary: Apply parallel ignores skipemptyfilesets
           Product: Ant
           Version: 1.4.1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: iportnoy@knoa.com


Apply with skipemptyfilesets="yes", parallel="yes"
runs its command even when there are no files in the fileset.

An attachment to bug 1763 checks (files.size() > 0) in case of parallel
processing, making it always skip empty file sets.
I do not see the logic in the checked-in source.

To reproduce, run the following ANT code in a directory with no *. a files:

<project default="build" >
  <target name="build">
    <apply executable="cmd.exe" dest="." failonerror="yes" 
           skipemptyfilesets="yes" 
           parallel="yes">
      <arg value="/c" />
      <arg value="echo" />
      <srcfile />
      <fileset dir="." includes="*.a" />
      <mapper type="glob" from="*.a" to="*.b"/>
    </apply>
  </target>
</project>

Observed output:

Buildfile: build.xml

build:
    [apply] Skipping fileset for directory C:\TEMP\ant. It is empty.
    [apply] ECHO is on.

BUILD SUCCESSFUL

Total time: 1 second

Mime
View raw message