ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 20947] New: - treatment of special characters by ant (escaping * -> \*)
Date Fri, 20 Jun 2003 11:19:15 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20947>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20947

treatment of special characters by ant (escaping * -> \*)

           Summary: treatment of special characters by ant (escaping * ->
                    \*)
           Product: Ant
           Version: 1.5.3
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: jtopher@yahoo.com


If I run the following task

<!-- NOTE: LANG=C required in order for the build to work with ssh (ssh sets
LANG=POSIX) -->
<exec executable="${linker.selected}" dir="${dist.dir}" failonerror="true">
  <arg line="${linker.args} *.o"/>
  <env key="LANG" value="C"/>
</exec>

Then the * in <arg line="${linker.args} *.o"/> gets changed from a special
character to a normal character i.e it gets 'escaped'. Now although I can work
around this behaviour by first constructing a fileset to select all objects
files (*.o) and then convert this to a space seperated list this problem of
escaping of special characters has other problems. If an object file in the list
of objects files resides in a directory which contain a space then it won't be
found by the operating system because ant seems to do some processing on the
space contained in the list

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message