ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Jeszenszky <>
Subject <exec> problem
Date Tue, 17 Jun 2003 08:29:51 GMT

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="./">
		<env key="ENVAR" value="value"/>

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,


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message