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 8359] - Exec task seems to disregard quotes and apostrophes in arg attribute values.
Date Tue, 23 Apr 2002 02:34:38 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=8359>.
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=8359

Exec task seems to disregard quotes and apostrophes in arg attribute values.





------- Additional Comments From holtdl@yahoo.com  2002-04-23 02:34 -------
All of the following work for me:
  <target name="echoit">
    <exec executable="echo">
      <arg value='"This text is \"quoted\""'/>
    </exec>
  </target>

  <target name="runfind">
    <exec executable="find" vmlauncher="no">
      <arg line='src -type f -exec echo "{}" ";"'/>
    </exec>
  </target>

  <target name="doawk">
    <exec executable="sh">
      <arg line='-c "awk &apos;{ print $$1 ; }&apos; build.properties"'/>
    </exec>
  </target>

But there's a different problem with your approach -- the asterisks.
I doubt they'll ever do what you want them to (note that I didn't include
a -name "*.whatever" in my find), so you're probably going to have to 
come up with a different way of doing this anyway.

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


Mime
View raw message