ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ed Mangual" <ed.mang...@s1.com>
Subject RE: Quoting issue
Date Wed, 05 Dec 2001 23:59:09 GMT
Thanks Frank
 
Tried the following, but still got the same error as in my prior email.
 
                        <exec dir="${afi.packaging.work}"
executable="signtool" failonerror="true">
                                    <arg value="-d${nshome}"/>
                                    <arg value="-c9"/>
                                    <arg value="-k${nscert}"/>
                                    <arg value="--verbosity -1"/>
                                    <arg value="-Z ${archive}.jar"/>
                                    <arg value="-e.class"/>
                                    <arg value="-e.properties"/>
                                    <arg value="."/>             
                        </exec>
 
Ed Mangual
SCM Architect
Business Banking Division
S1 Corporation, Charlotte
704-423-2530
mailto:ed.mangual@s1.com
 
-----Original Message-----
From: Ed Mangual [mailto:ed.mangual@s1.com] 
Sent: Wednesday, December 05, 2001 6:14 PM
To: ant-user@jakarta.apache.org
Subject: FW: Quoting issue
 
After changing my nshome to c\:/Progra~1/Netscape/Users/default and
<property name="nscert" value="&quot;S1 Corp&apos;s VeriSign, Inc.
ID&quot;"/>  I
get a little further but I get the following error:
 
BUILD FAILED
 
     [echo] Building Applet Bridge...
     [exec] Current OS is Windows NT
     [exec] dubuild appletBridge.cab . /D appletBridge /I *.class /I
*.properties
     [exec]
     [exec] Microsoft (R) Distribution Unit Builder - Version 5.00.3229
     [exec] Copyright (C) Microsoft Corporation 1997-1998. All rights
reserved.
     [exec]
     [exec] Current OS is Windows NT
     [exec] signcode -j javasign.dll -n "JavaScript to Applet Bridge"
-jp LowX -spc c:/certs/fics.spc -v c:/certs/fics.pvk appletBridge.cab
     [exec] Warning: This file is signed, but not timestamped.
     [exec] Succeeded
     [exec] Current OS is Windows NT
     [exec] signtool -dc:/Progra~1/Netscape/Users/default -c9 "-kS1
Corp's VeriSign, Inc. ID" --verbosity -1 -Z appletBridge.jar -e.class
-e.properties .
 
BUILD FAILED
 
c:\projects\afi54\build\signcode.xml:71: Can't handle single and double
quotes in same argument
        at org.apache.tools.ant.types.Commandline.quoteArgument(Compiled
Code)
        at org.apache.tools.ant.types.Commandline.toString(Compiled
Code)
        at
org.apache.tools.ant.taskdefs.Execute$Java11CommandLauncher.exec(Compile
d Code)
        at
org.apache.tools.ant.taskdefs.Execute$CommandLauncherProxy.exec(Execute.
java:605)
        at
org.apache.tools.ant.taskdefs.Execute$WinNTCommandLauncher.exec(Execute.
java:650)
        at
org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:384)
        at org.apache.tools.ant.taskdefs.ExecTask.runExecute(Compiled
Code)
        at
org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:279)
        at
org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:177)
        at org.apache.tools.ant.Task.perform(Task.java:217)
        at org.apache.tools.ant.Target.execute(Compiled Code)
        at org.apache.tools.ant.Target.performTasks(Target.java:202)
        at org.apache.tools.ant.Project.executeTarget(Compiled Code)
        at org.apache.tools.ant.Project.executeTargets(Compiled Code)
        at org.apache.tools.ant.Main.runBuild(Compiled Code)
        at org.apache.tools.ant.Main.start(Compiled Code)
        at org.apache.tools.ant.Main.main(Main.java:176)
 
Kind regards,
 
Ed Mangual
SCM Architect
Business Banking Division
S1 Corporation, Charlotte
704-423-2530
mailto:ed.mangual@s1.com
 
-----Original Message-----
From: Ed Mangual [mailto:ed.mangual@s1.com] 
Sent: Wednesday, December 05, 2001 4:48 PM
To: 'ant-user@jakarta.apache.org'
Subject: Quoting issue
 
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;s VeriSign, 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 .
        at
org.apache.tools.ant.types.Commandline.translateCommandline(Compiled
Code)
        at
org.apache.tools.ant.types.Commandline$Argument.setLine(Commandline.java
:127)
        at org.apache.tools.ant.IntrospectionHelper$5.set(Compiled Code)
        at
org.apache.tools.ant.IntrospectionHelper.setAttribute(Compiled Code)
        at org.apache.tools.ant.ProjectHelper.configure(Compiled Code)
        at
org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(Compiled Code)
        at
org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(Compiled Code)
        at org.apache.tools.ant.Task.maybeConfigure(Task.java:178)
        at org.apache.tools.ant.Task.perform(Task.java:216)
        at org.apache.tools.ant.Target.execute(Compiled Code)
        at org.apache.tools.ant.Target.performTasks(Target.java:202)
        at org.apache.tools.ant.Project.executeTarget(Compiled Code)
        at org.apache.tools.ant.Project.executeTargets(Compiled Code)
        at org.apache.tools.ant.Main.runBuild(Compiled Code)
        at org.apache.tools.ant.Main.start(Compiled Code)
        at org.apache.tools.ant.Main.main(Main.java:176)
 
 
 
I'm using ant 1.4.1, w2k sp2.
 
 
Any ideas?
 

Mime
View raw message