Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 40245 invoked by uid 500); 18 May 2001 19:50:41 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 40112 invoked from network); 18 May 2001 19:50:19 -0000 Message-Id: <4.3.1.1.20010518154216.03b67eb0@oneworld> X-Sender: darose@oneworld X-Mailer: QUALCOMM Windows Eudora Version 4.3.1 Date: Fri, 18 May 2001 15:47:38 -0400 To: ant-user@jakarta.apache.org From: David Rosenstrauch Subject: Fwd: Need help with args to exec command Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Actually, initial problem was solved. The exe I'm calling allowed some flexibility in the parameter structure. But I have a different, similar problem now. I got it to generate the command line I want successfully: v:\netscapesigning\signing13\signtool.exe -e.class -dv:\netscapesigning\Keys --outfile netscapesigning.out -k "OneWorld, Inc.'s VeriSign, Inc. ID #2" . But I'm getting the single/double quotes error again: "Can't handle single and double quotes in same argument". It doesn't seem to like the argument that looks like this: -k "OneWorld, Inc.'s VeriSign, Inc. ID #2" because it has a single quote embedded inside. Any suggestions? The build step looks like this: TIA! DR >Date: Fri, 18 May 2001 14:01:44 -0400 >To: ant-user@jakarta.apache.org >From: David Rosenstrauch >Subject: Need help with args to exec command > >Help! > >Trying to execute a DOS command like this from my build.xml: > >v:\netscapesigning\signing13\signtool.exe -e".class" > > >I tried doing this: > > dir="classes" > executable="v:\netscapesigning\signing13\signtool.exe" > failonerror="yes"> > > > >But no dice. Verbose output shows the command being generated as: > >v:\netscapesigning\signing13\signtool.exe -e.class > >Quotes are missing. Bad. > > >So I tried doing this: > dir="classes" > executable="v:\netscapesigning\signing13\signtool.exe" > failonerror="yes"> > > > >Now the command is generated as: > >v:\netscapesigning\signing13\signtool.exe '-e".class"' > >Extra quotes were added. Also bad. Plus I get an ANT error: > >"Can't handle single and double quotes in same argument" > > >Any ideas? > > >Thanks! > > >DR