ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 49596] preceding / modifies fileset result
Date Sat, 07 Aug 2010 20:45:18 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49596

--- Comment #3 from vlad.balan@gmail.com 2010-08-07 16:45:16 EDT ---
Sorry to post this here hoping you will be reading this.
I think there is a error in the 3rd example from the bottom on this manual page

http://ant.apache.org/manual/index.html

regarding: from="src${file.separator}*.file"

Look at this one and at the last who says 

<!-- redirect STDIN; fileset collects relative to its dir, but we need -->
        <!-- relative to basedir -->
        <inputmapper type="glob" from="*" to="src/*"/>

So in the 3rd example there should be: from="{file.separator}*.file"



Apparenlty a mapper receives a file in the form of its segments of the file
name after the fileset's dir.

Ex: for a file "D:a/b/c.txt" obtained from <fileset dir="D:/a"
includes="**/*.txt"/>

the mapper will receive "b/c.txt"

In contrast, the nesting task of a fileset, like the "apply" task for example,
knows to obtain the complete file name: "D:a/b/c.txt".

Is this conclusion right?

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message