You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by li...@bitfaeule.net on 2006/05/17 13:59:01 UTC

command line args on win with quotes / whitespaces

Hello List,

I have a problem I need to spawn a process with exec and need to pass it arguments  that contain whitespaces 

Finally I want my exec to spaw a process that behaves exactly like running the following command in the command shell from D:\depot\InstallerDeliveries\Win\My Product\3.0.0:
"C:\Program Files\InstallShield\Developer\System\IsCmdBld.exe" -p "D:\depot\InstallerDeliveries\Win\My Product\3.0.0\My Company My Product 3.0\My Company My Product 3.0.ism" -r "English" -a "Media" > "D:\depot\InstallerDeliveries\Win\My Product\3.0.0\MSIBuildLog.txt"



		<!-- breaks due to white spaces-->
		<exec 	dir="D:\depot\InstallerDeliveries\Win\My Product\3.0.0"
			output="depotMSIBuildLog.txt"
			executable="C:\Program Files\InstallShield\Developer\System\IsCmdBld.exe">
			<arg value="-p D:\depot\InstallerDeliveries\Win\My Product\3.0.0\My Company My Product 3.0\My Company My Product 3.0.ism"/>
			<arg value="-r English"/>
			<arg value="-a Media"/>
		</exec>

thanks for helping me here

jacques

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