ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Jeszenszky <je...@venus.math.klte.hu>
Subject <exec> problem
Date Tue, 17 Jun 2003 08:29:51 GMT
Hello,

I would like to execute a shell script on Linux with <exec>
and to specify environment variables to pass to the script
via nested <env> elements:

	<exec executable="./script.sh">
		<env key="ENVAR" value="value"/>
	</exec>

The script is executed but the following appears in the output:

	[exec] /bin/bash: mc: line 3: syntax error: unexpected end of file
	...

If I remove the nested <env> element then the above line does
not appear.

Also if the executable is a binary executable not a shell script
then the problem does not occur.

Any idea how to fix the problem?

Yours sincerely,

Peter

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


Mime
View raw message