https://issues.apache.org/bugzilla/show_bug.cgi?id=55083
Bug ID: 55083
Summary: Globmapper broken when from doesn't contain '*'
Product: Ant
Version: 1.9.1
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: Core
Assignee: [email protected]
Reporter: [email protected]
Created attachment 30419
--> https://issues.apache.org/bugzilla/attachment.cgi?id=30419&action=edit
GlobPatternMapper.diff
We are currently in the process to upgrade our builds from Ant 1.7.1 to Ant
1.9.1
A colleague reported his buildscript using the globmapper to strip of a
subdirectory (Yes i know, there are other ways like cutdirsmapper since Ant
1.8.x) is broken with Ant 1.9.1 - same behaviour with Ant 1.8.4 :
<copy todir="some/dir">
<fileset dir="some/other/dir" includes="src\**\*.java" />
<globmapper from="src" to=""/>
</copy>
gives :
[copy] some/other/dir/src/de/foo/bar/Foobar.java skipped - don't know how to
handle it
…
[copy] No sources found.
but it worked in Ant 1.7.1 :
[copy] some/other/dir/src/de/foo/bar/Foobar.java to
some/dir/de/foo/bar/Foobar.java
Created a patch to make it work again, see attached diff.
Regards, Gilbert
--
You are receiving this mail because:
You are the assignee for the bug.