Discussion:
[Bug 57244] New: copy task does not fail if the file is missing and specified as a fileset
b***@apache.org
2014-11-21 11:17:43 UTC
Permalink
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: ***@ant.apache.org
Reporter: ***@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.
b***@apache.org
2014-11-21 14:51:14 UTC
Permalink
https://issues.apache.org/bugzilla/show_bug.cgi?id=57244

Stefan Bodewig <***@apache.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID

--- Comment #1 from Stefan Bodewig <***@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.
Loading...