Re: Quoting issue
On Fri, 7 Dec 2001, Ed Mangual [EMAIL PROTECTED] wrote: Stefan, Sorry for misspelling your name. Could have been worse 8-) Does ant require jdk1.2.2 and above? No, it shouldn't. Maybe Runtime.exec has a bug in JDK 1.1.8? I don't know. Stefan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Quoting issue
Stefan, Sorry for misspelling your name. Ed Mangual SCM Architect Business Banking Division S1 Corporation, Charlotte 704-423-2530 mailto:[EMAIL PROTECTED] -Original Message- From: Ed Mangual [mailto:[EMAIL PROTECTED]] Sent: Friday, December 07, 2001 3:45 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re:Quoting issue Stephan, Diane Thanks for all the help you guys have provided. I was able to resolve my issue. I changed my JAVA_HOME from jdk1.1.8 to jdk1.2.2 and I didnt get the error message. As soon as I switched it back to jdk1.1.8, I got the error message again. I need to compile my code using jdk1.1.8. I have a batch file that I can call using exec to sign my code. Does ant require jdk1.2.2 and above? Ed Mangual SCM Architect Business Banking Division S1 Corporation, Charlotte 704-423-2530 mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Quoting issue
On Wed, 5 Dec 2001, Ed Mangual [EMAIL PROTECTED] wrote: 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 This should probably work. Are you really getting exactly the same error? I ask, as org.apache.tools.ant.types.Commandline$Argument.setLine(Commandline.java will never be invoked by the above construct. Stefan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Quoting issue
On Thu, 6 Dec 2001, Ed Mangual [EMAIL PROTECTED] wrote: After changing my nshome to c\:/Progra~1/Netscape/Users/default in my user.properties , changed the property name=nscert value=quot;S1 Corpapos;s VeriSign, Inc. IDquot;/ in my build.xml and using arg value instead this is what I get When using value, you won't need the quot;s any longer. Stefan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Quoting issue
--- Stefan Bodewig [EMAIL PROTECTED] wrote: On Thu, 6 Dec 2001, Ed Mangual [EMAIL PROTECTED] wrote: After changing my nshome to c\:/Progra~1/Netscape/Users/default in my user.properties , changed the property name=nscert value=quot;S1 Corpapos;s VeriSign, Inc. IDquot;/ in my build.xml and using arg value instead this is what I get When using value, you won't need the quot;s any longer. You can also just use a regular single-quote in the property (Corp's) instead of the apos;. Diane = ([EMAIL PROTECTED]) __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Quoting issue
Ed could you send me that file please. I would like to see what is going on there. Thanks --felix -Original Message- From: Ed Mangual [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 11:04 AM To: 'Ant Users List' Subject: RE: Quoting issue I still have the same problem after removing quot; and apos; from nscert. C:\projects\afi54\build\signcode.xml:120: Can't handle single and double quotes in same argument Ed -Original Message- From: Stefan Bodewig [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 11:53 AM To: [EMAIL PROTECTED] Subject: Re: Quoting issue On Thu, 6 Dec 2001, Ed Mangual [EMAIL PROTECTED] wrote: After changing my nshome to c\:/Progra~1/Netscape/Users/default in my user.properties , changed the property name=nscert value=quot;S1 Corpapos;s VeriSign, Inc. IDquot;/ in my build.xml and using arg value instead this is what I get When using value, you won't need the quot;s any longer. Stefan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Quoting issue
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 Corpapos;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) Im using ant 1.4.1, w2k sp2. Any ideas? -- To unsubscribe, e-mail: mailto:ant-user-unsubscr [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Quoting issue
The value passed to signtool probably needs to be enclosed in quotes, try property name=nscert value=quot;S1 Corpapos;s VeriSign, Inc. IDquot;/ -- Jill - Original Message - From: Ed Mangual [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, December 06, 2001 7:47 AM 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 Corpapos;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? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] --- The contents of this message are the views of the Author and do not necessarily reflect the views of SUNCORP METWAY LTD ABN 66 010 831 722. The content of this e-mail, including attachments is a confidential communication between the Suncorp Metway Group and the intended addressee. Any unauthorised use of the contents is expressly prohibited. If you have received this e-mail in error please contact the sender immediately and then delete the message and any attachment(s). http://www.suncorpmetway.com.au -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Quoting issue
As a follow up, can the documentation for the arg tage be clarified? It says a single command-line argument; can contain space characters but seems like it should include other command-line parsing break characters such as double-quote and single quote. A side note: In Perl it is a common mistake to use exec with just one parameter: exec $cmd $parm1 $parm2 $parm3; instead of exec ($cmd, $parm1, $parm2, $parm3); The first, bad, way causes all kinds of quoting grief. Unless, of course, you WANT the shell to parse the command line before passing it to exec(). Just remember that the arguments to main() are universally a list, not a string. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Quoting issue
Unlikely, since the error is in org.apache.tools.ant.types.Commandline.translateCommandline, not signtool. See my earlier comment on passing parameters to exec with or without shell parsing. Jill Stephenson wrote: The value passed to signtool probably needs to be enclosed in quotes, try property name=nscert value=quot;S1 Corpapos;s VeriSign, Inc. IDquot;/ -- Jill - Original Message - From: Ed Mangual [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, December 06, 2001 7:47 AM 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 Corpapos;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? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] --- The contents of this message are the views of the Author and do not necessarily reflect the views of SUNCORP METWAY LTD ABN 66 010 831 722. The content of this e-mail, including attachments is a confidential communication between the Suncorp Metway Group and the intended addressee. Any unauthorised use of the contents is expressly prohibited. If you have received this e-mail in error please contact the sender immediately and then delete the message and any attachment(s). http://www.suncorpmetway.com.au -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Quoting issue
- Original Message - From: Frank E. Weiss [EMAIL PROTECTED] To: Ant Users List [EMAIL PROTECTED] Sent: Wednesday, December 05, 2001 3:00 PM Subject: Re: Quoting issue As a follow up, can the documentation for the arg tage be clarified? It says a single command-line argument; can contain space characters but seems like it should include other command-line parsing break characters such as double-quote and single quote. Why not make the changes to the appropriate file, post the CVS diff -u of that file to ant-dev and it'll make its way into the source tree: documentation is an important contribution to any Apache project, and your effort would be valued. Also, what is wrong with the signjar task that prevented you from using it? -steve -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Quoting issue
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:[EMAIL PROTECTED] -Original Message- From: Ed Mangual [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 05, 2001 6:14 PM To: [EMAIL PROTECTED] Subject: FW: Quoting issue After changing my nshome to c\:/Progra~1/Netscape/Users/default and property name=nscert value=quot;S1 Corpapos;s VeriSign, Inc. IDquot;/ 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(Compiled 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:[EMAIL PROTECTED] -Original Message- From: Ed Mangual [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 05, 2001 4:48 PM To: '[EMAIL PROTECTED]' 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 Corpapos;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) Im using ant 1.4.1, w2k sp2. Any ideas? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional