ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From li...@bitfaeule.net
Subject command line args on win with quotes / whitespaces
Date Wed, 17 May 2006 11:59:01 GMT
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


Mime
View raw message