Thanks Andy for your response. Unfortunately, modifying the arguments as per your suggestion didn't help.
As I described earlier, even though <arg line="@{type} @{configDir}"/> is mentioned the same way (without multiple <arg line statements), and if @{configDir} contains the directory path without spaces, the build is successful. Only when @{configDir} contains spaces the build fails. Thanks, Vivek Payala | Team Lead - Configuration Management (Professional & Managed Services Group) | Persistent Systems [EMAIL PROTECTED] | Cell: +91 93701 31472 | Tel: +91 (20) 3023 6447 Innovation in software product design, development and delivery- www.persistentsys.com -----Original Message----- From: Andy Stevens [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 30, 2008 4:24 AM To: Ant Users List Subject: Re: Build fails when 'java' task's "arg line" contains a directory path with spaces 2008/9/29 Vivek Payala <[EMAIL PROTECTED]>: > Our build fails while executing the following task. It fails only when the > application is installed in a directory having space. > > <java classname="com.abc.a" failonerror="true" fork="yes" maxmemory="512m" > errorproperty="runerror"> > <jvmarg value="-server"/> > <arg line="@{type} @{configDir}"/> > <classpath> > <path refid="client.classpath.lib"/> > </classpath> > </java> > > If the @{configDir} directory does not have spaces then the build succeeds. > We have tried specifying @{configDir} in "", '', but it didn't work. Instead of <arg line="@{type} @{configDir}"/> how about using <arg value="@{type}"/> <arg value="@{configDir}"/> instead? As the docs say, value "can contain space characters" while line is "space-delimited" and "It is highly recommended to avoid the line version when possible." I don't see anything that says you can only have a single nested arg element. Andy. -- http://pseudoq.sourceforge.net/ Open source java Sudoku application --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] DISCLAIMER ========== This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.