ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erlandsson Martin" <Martin.Erlands...@guide.se>
Subject SV: Ant start.bat ?!?
Date Tue, 24 Jun 2003 20:48:02 GMT
Try using cmd.exe with the /K flag. It will keep your window open. I use this approach and
it works nicely.
One-liner bat file in the same dir as build.xml:
 
cmd.exe /K ant
 
 
/Martin
 
 

	-----Ursprungligt meddelande----- 
	Från: Rebhan, Gilbert [mailto:Gilbert.Rebhan@huk-coburg.de] 
	Skickat: ti 2003-06-24 17:15 
	Till: ant_user (E-Mail) 
	Kopia: 
	Ämne: Ant start.bat ?!?
	
	


	Hi,
	
	On a machine without adminrights, i set the variables in a bat-file
	that looks like that :
	
	set ANT_HOME=Y:\ant
	set PATH=%PATH%;C:\Programme\JavaSoft\JDK\jdk1.3.1_03\bin;%ANT_HOME%\bin
	set JAVA_HOME=C:\Programme\JavaSoft\JDK\jdk1.3.1_03
	ant -help 
	
	When running that batchfile, cmd-windows pops up and disappears immediately,
	even with a 'pause' at the end ?!
	
	When starting a blank cmd-session and typing the same lines, the cmd-window
	remains and shows the expected output !
	
	What's the reason for that behaviour, where + how to change it [Ant\Bin\Ant.bat ?] ?
	
	thx for any advice !!
	
	bye4now,
	        Gilbert
	
	
	
	
	---------------------------------------------------------------------
	To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
	For additional commands, e-mail: user-help@ant.apache.org
	
	



Mime
View raw message