DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43347>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43347

           Summary: Composite mapper doesnt generate multiple files
           Product: Ant
           Version: 1.7Alpha (nightly)
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: [EMAIL PROTECTED]


This is a bugrep raised against an example in Ant in Action, we have to decide
if this is a real bug, a regression or just the way things work

Here's a build file

<project name="mapper">

<target name="clean" depends="teardown"/>

<target name="teardown">
 <delete dir="build"/>
</target>

<target name="init">
  <mkdir dir="build" />
</target>
  
<target name="testComposite"
  depends="init">
  
  <copy todir="build">
    <fileset dir="." includes="*.xml" />
    <compositemapper>
      <identitymapper />
      <globmapper from="*.xml" to="*.txt"/>
    </compositemapper>
  </copy>
</target>


<target name="testGlob" 
  depends="init">
  <copy todir="build">
    <fileset dir="." includes="*.xml" />
    <compositemapper>
      <globmapper from="*.xml" to="*.txt"/>
    </compositemapper>
  </copy>
</target>


</project>

The first target, testComposite, does two mappings of a file to copy, identity
and a rename to .txt. 

expected: copy makes two copies of the source file, identity and mapped

actual: the identity file is copied, but the .txt file is never created.
Whenever the target is run, it always selects the file for copying, but never
creates the file with the target name. 

testComposite:
     [copy] build.xml added as build.txt doesn't exist.
     [copy] No sources found.
     [copy] Copying 1 file to
C:\Personal\examples\sections\learning\ch_05_packaging\build
     [copy] Copying
C:\Personal\examples\sections\learning\ch_05_packaging\build.xml to
C:\Personal\examples\sections\learning\ch_05_packaging\build\build.xml

The file is picked up by the mapper, but the mapping doesnt kick in. Only the
first one, the identity mapper, is being used to create the output file names

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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to