ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter reilly <peter.rei...@corvil.com>
Subject Re: <exec> problem
Date Tue, 17 Jun 2003 09:13:04 GMT
I do not know what is wrong. But I have
had grief before using executable="x.sh".
Normally I do
<exec executable="bash" directory="${basedir}">
    <param value="script.sh"/>
    <env key="ENVAR" value="value"/>
 </exec>

Peter

On Tuesday 17 June 2003 09:29, Peter Jeszenszky wrote:
> 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


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


Mime
View raw message