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

           Summary: <apply> Forces a space in arguments when using
                    <targetfile> or <srcfile>
           Product: Ant
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Core tasks
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


Many command line applications (including Ant) require that there be no space
between a command line argument type and its value.

For example:
ant -Dmy.prop=myfile.txt

If myfile.txt is a <targetfile> then it is not possible to run this command as:
<apply executable='ant'
       ...>
  <fileset refid="my.fileset"/>
  <arg value="-Dmy.prop="/>
  <targetfile/>
  <arg value="-f"/>
  <srcfile/>
  <mapper type="glob" from"*.xml" to="*.txt"/>
</apply>

Will produce calls like

ant -Dmy.prop= myfile.txt -f myfile.xml

There should be a method of specifying that there should be no spaces between
an argument and the <targetfile/> or <srcfile/>


-- 
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