https://issues.apache.org/bugzilla/show_bug.cgi?id=48001

           Summary: Touch task with fileset and a mapper does not create
                    new files.
           Product: Ant
           Version: 1.7.1
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: [email protected]
        ReportedBy: [email protected]


I am trying to create a shadow directory to keep the timestamps of the files in
the original directory tree.

For this I have tried to use the <touch> task with fileset and a glob mapper.

    <mkdir dir="${shadow.dir}/>

    <touch mkdirs="true" verbose="true">
      <fileset dir="${orig.dir}"/>
      <globmapper handledirsep="true"
        from="${orig.dir}/*"
        to="${shadow.dir}/*"
      />
    </touch>

Based on the description of the <touch> task I should have a collection of
empty files in ${shadow.dir} at the same level as original files in
${orig.dir}.

However no directory structure is created.
Using <pathconvert> with the same <fileset> and <mapper> produced a valid file
list.

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

Reply via email to