ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vincent Belaïche (JIRA) <j...@apache.org>
Subject [jira] [Commented] (IVY-1393) Ant task exec arg value does not quote properly for MSWindows
Date Sun, 09 Dec 2012 18:53:21 GMT

    [ https://issues.apache.org/jira/browse/IVY-1393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13527580#comment-13527580
] 

Vincent Belaïche commented on IVY-1393:
---------------------------------------

I could not find how to attach the piece of Java code providing proper double quote escaping
for Windows, so I placed it on my page [here|http://vincentbelaiche.pagesperso-orange.fr/boite/MsDosQuoter.java].

Furthermore, in the issue creation form I did not filled the version entry because my ant
version is 

{{Apache Ant version 1.8.0 compiled on February  2010}}

which I could not find in the proposed list of versions.

(?) I am wondering now whether I submitted the issue to the right project... 


                
> Ant task exec arg value does not quote properly for MSWindows
> -------------------------------------------------------------
>
>                 Key: IVY-1393
>                 URL: https://issues.apache.org/jira/browse/IVY-1393
>             Project: Ivy
>          Issue Type: Bug
>          Components: Ant
>         Environment: MSWindows
>            Reporter: Vincent Belaïche
>              Labels: features, newbie
>   Original Estimate: 504h
>  Remaining Estimate: 504h
>
> I want to pass to some application the following string:\\
> {noformat}
> <link rel="icon" type="image/png" size="48x48" href="path/to/my/favion.png" />
> {noformat}
> So I use the following:\\
> {noformat} 
> <exec executable="some_executable.exe">
> <arg value="&lt;link rel=&quote;icon&quote; type=&quote;image/png&quote;
size=&quote;48x48&quote; href=&quote;path/to/my/favion.png&quote; /&gt;"/>
> </exec>
> {noformat}
> However, the application gets this instead:\\
> {noformat}
> <link rel=icon type=image/png size=48x48 href=path/to/my/favion.png />
> {noformat}
> Double quotes were stripped by MSWindows because they were not properly escaped in the
command line by Ant.
> I wrote a piece of code to do escaping of double quotes properly, and I will try to attach
it to the issue later on if I can.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message