You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2014/11/21 12:17:43 UTC
[Bug 57244] New: copy task does not fail if the file is missing and
specified as a fileset
https://issues.apache.org/bugzilla/show_bug.cgi?id=57244
Bug ID: 57244
Summary: copy task does not fail if the file is missing and
specified as a fileset
Product: Ant
Version: 1.9.4
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Core tasks
Assignee: notifications@ant.apache.org
Reporter: comp_@gmx.net
For the project below (with failonerror defaulting to true):
<project name="test-copy">
<target name="init">
<mkdir dir="destination"/>
</target>
<target name="copy-file-attr" depends="init">
<copy todir="destination" file="non-existing.txt"/>
</target>
<target name="copy-file-fileset" depends="init">
<copy todir="destination">
<fileset file="non-existing.txt"/>
</copy>
</target>
</project>
I'm expecting both:
$ ant copy-file-attr
$ ant copy-file-fileset
to fail because the file to copy is missing but only the first invocation
fails.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 57244] copy task does not fail if the file is missing and
specified as a fileset
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57244
Stefan Bodewig <bo...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Stefan Bodewig <bo...@apache.org> ---
This is the behaviour of fileset. It is a collection of filters for a set of
files and no files are matched by the patterns this is just fine.
Use <file> or <filelist>.
--
You are receiving this mail because:
You are the assignee for the bug.