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] New: - Ant seens to disregard quotes and apostrophes in attributes
Date Mon, 22 Apr 2002 04:17:04 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

Ant seens to disregard quotes and apostrophes in attributes

           Summary: Ant seens to disregard quotes and apostrophes in
                    attributes
           Product: Ant
           Version: 1.4.1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Other
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: jmoravec@austar.com.au


It seems that Ant or the exec task disregards quotes and apostrophes in 
attributes.

Example:
<exec executable="plink.exe" dir="." failonerror="true">
  <arg line="-ssh" />
  <arg line="-pw ${DEPLOY_PASSWD}" />
  <arg line="${DEPLOY_USER}@${_remote_deploy_host}" />
  <arg line="find ${DEPLOY_ROOT_UNIX}/* -depth -not \( " />
  <arg line="-path */${module_name}/files/nicko/*.xml -or " />
  <arg line="-path */${module_name}/files/nicko -or " />
  <arg line="-path */${module_name}/files/lifestyle/*.xml -or " />
  <arg line="-path */${module_name}/files/lifestyle -or " />
  <arg line="-path */${module_name}/files/channelv/*.xml -or " />
  <arg line="-path */${module_name}/files/channelv -or " />
  <arg line="-path */${module_name}/files -or " />
  <arg line="-path */${module_name} " />
  <arg line="\) " />
  <arg line="-exec rm -f &quot;{}&quot; &quot;;&quot;" />
</exec>

results in:

[exec] plink.exe -ssh -pw [password_removed] itvbuild@itvapache 
find /austar_p4/* -depth -not \( -path */html_interfaces/files/nicko/*.xml -or -
path */html_interfaces/files/nicko -or -
path /html_interfaces/files/lifestyle/*.xml -or -path 
*/html_interfaces/files/lifestyle -or -path 
*/html_interfaces/files/channelv/*.xml -or -path 
*/html_interfaces/files/channelv -or -path */html_interfaces/files -or -path 
*/html_interfaces \) -exec rm -f {} ;
[exec] find: missing argument to `-exec'

The exec task should be passed .... -exec rm -r "{}" ";"

The same problem pops up when &apos; or 's are used in the argument definition, 
again only ... -exec rm -f {} ; is passed to the command.

Thank you,
Jan

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