ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank E. Weiss" <fra...@well.com>
Subject Re: Quoting issue
Date Wed, 05 Dec 2001 22:46:08 GMT
Try using <arg value="..."> for each exec parameter  instead of <arg
line="...">. Exec really likes a vector of strings better than having to
parse a line into words.

Ed Mangual wrote:

> How do you escape apostrophes? I having a small issue running exec, I
> have the following:
>
> user.properties snippet
>
> nshome=c\:/Program Files/Netscape/Users/default
>
> build.xml snippet
>
> <property name="nscert" value="S1 Corp&apos;sVeriSign, Inc. ID"/>
>
> <exec dir="${afi.packaging.work}"
> executable="signtool" failonerror="true">
>
> <arg line="-d${nshome} -c9 -k${nscert} --verbosity -1 -Z
> ${archive}.jar -e.class -e.properties . "/>
>
> </exec>
>
> error:
>
> c:\projects\afi54\build\signcode.xml:72: unbalanced quotes in
> -dc:/Program Files/Netscape/Users/default -c9 -kS1 Corp's
>
> VeriSign, Inc. ID --verbosity -1 -Z appletBridge.jar -e.class
> -e.properties .
>
> atorg.apache.tools.ant.types.Commandline.translateCommandline(Compiled
> Code)
>
>
> torg.apache.tools.ant.types.Commandline$Argument.setLine(Commandline.java:127)
>
> at org.apache.tools.ant.IntrospectionHelper$5.set(Compiled Code)
>
> atorg.apache.tools.ant.IntrospectionHelper.setAttribute(Compiled Code)
>
> atorg.apache.tools.ant.ProjectHelper.configure(Compiled Code)
>
> atorg.apache.tools.ant.RuntimeConfigurable.maybeConfigure(Compiled
> Code)
>
> atorg.apache.tools.ant.RuntimeConfigurable.maybeConfigure(Compiled
> Code)
>
> atorg.apache.tools.ant.Task.maybeConfigure(Task.java:178)
>
> atorg.apache.tools.ant.Task.perform(Task.java:216)
>
> atorg.apache.tools.ant.Target.execute(Compiled Code)
>
> atorg.apache.tools.ant.Target.performTasks(Target.java:202)
>
> atorg.apache.tools.ant.Project.executeTarget(Compiled Code)
>
> atorg.apache.tools.ant.Project.executeTargets(Compiled Code)
>
> atorg.apache.tools.ant.Main.runBuild(Compiled Code)
>
> atorg.apache.tools.ant.Main.start(Compiled Code)
>
> atorg.apache.tools.ant.Main.main(Main.java:176)
>
> I’m using ant 1.4.1, w2k sp2.
>
> Any ideas?
>
>    ----------------------------------------------------------------
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscr
> ibe@jakarta.apache.org>
> For additional commands, e-mail: <
> mailto:ant-user-help@jakarta.apache.org>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message