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 45625] New: <apply> Forces a space in arguments when using <targetfile> or <srcfile>
Date Wed, 13 Aug 2008 12:56:16 GMT
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: notifications@ant.apache.org
        ReportedBy: tom.hennen@gmail.com


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.

Mime
View raw message