You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by CP Agrawal <cp...@steelwedge.com> on 2004/07/01 01:47:59 UTC

Help with spawn and cmd

I am working on windows xp and trying to make following work:
  <target name="weblogic-start" depends="read-prefs">
     <echo message="${deploy.domain.dir}"/>
     <exec dir="${deploy.domain.dir}" executable="cmd.exe" spawn="true"
os= "Windows XP" vmlauncher="false" newenvironment="true">
	<arg value="startWeblogic"/>
    </exec>
  </target>

I have tried several combinations of arg value:
<arg value="/c startWeblogic"/>

<arg value="/k startWeblogic"/>

But none of them launch startWeblogic .

Interestingly, when I make spawn="false" and <arg value="/c
startWeblogic"/> it works.

How can I make spawn work?

Thanks.

-- CP

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org