Try using
<arg value="-cp"/> <arg path="c:/mypath"/> instead of > <arg value="-cp "c:/mypath""/> Adam > -----Original Message----- > From: Timothy Fisher [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, 26 March 2002 2:39 AM > To: 'Ant Users List' > Subject: Problem with quoted argument value > > > Hello, > > I'm writing a task in an Ant script that will deploy > an EJB module. > Part of this task makes a call to the ejbdeploy.bat > script for generating ejb deployment code. > This script can take a class path as an argument as > follows: > -cp "classpath here separated by semicolons" > Note that the double quotes must surround this > argument. (I am using the Websphere ejbdeploy > script, not sure if others behave differently) > > My problem is this. There is a known, reported, bug > in Ant that prevents the " entity from working. > If you use the " entity in a arg value, it gets > stripped > off and you end up with no quotes. > > A portion of my script is shown below: > > <echo>Deploying EJB JAR file</echo> > <exec > executable="${global.was.dir}/bin/ejbdeploy.bat"> > <arg value="${ejb.jar.file}"/> > <arg value="${global.temp.dir}"/> > <arg value="${global.temp.dir}/${ejb.jar.name}"/> > <arg value="-cp "c:/mypath""/> > <arg value="-quiet"/> > </exec> > > > Unfortunately this does not work, because Ant strips > off the double quotes that I specifically requested be > present. > > Can anyone either suggest a solution as to how I can > pass this argument to ejbdeploy? > or > tell me when a version of Ant might be released that > fixes the quotation problem? > > Note the quotation bug is in bugzilla as bug #: 5906 > > Thanks, > Timothy Fisher > [EMAIL PROTECTED] > > __________________________________________________ > Do You Yahoo!? > Yahoo! Movies - coverage of the 74th Academy Awards. > http://movies.yahoo.com/ > > -- > 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]>
