ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tommy Nordgren <tommy.nordg...@chello.se>
Subject Re: AW: Problem with exec task
Date Tue, 24 Jan 2006 09:22:23 GMT
A perl script IS an EXECUTABLE, if you give it a valid shebang line,  
and sets
execute permission on it.
On Jan 24, 2006, at 8:44 AM, <Jan.Materne@rzf.fin-nrw.de>  
<Jan.Materne@rzf.fin-nrw.de> wrote:

> And is that REALLY an executable?
> AFAIK a .pl is a perl script which needs the perl interpreter ...
>
> Jan
>
>> -----Urspr√ľngliche Nachricht-----
>> Von: Stefan Bodewig [mailto:bodewig@apache.org]
>> Gesendet: Montag, 23. Januar 2006 22:26
>> An: user@ant.apache.org
>> Betreff: Re: Problem with exec task
>>
>> On Mon, 23 Jan 2006, Tommy Nordgren <tommy.nordgren@chello.se> wrote:
>>
>>> I want to run an executable nested in one of my build directories.
>>> I've tried:
>>> <exec
>> executable="${unittest.build.dir}/TestRequiredInput.pl" /> This
>>> executes the command, but the work directory is still the base
>>> directory of my build.
>>> I want it set to the directory containing the executable.
>>>
>>> When I tries:		
>>> <exec dir="${unittest.build.dir}" executable="${unittest.build.dir}/
>>> TestRequiredInput.pl" />
>>> exec will just return an error code of 255.
>>
>> Is ${unittest.build.dir} an absolute path?  I would have
>> expected that to work.
>>
>>> When I try: <exec dir="${unittest.build.dir}"
>>> executable="TestRequiredInput.pl" /> ant will throw an IOException
>>> ("File not Found")
>>
>> See exec's manual page, in particular the entry of the
>> vmlauncher attribute.
>>
>> Stefan
>>
>> ---------------------------------------------------------------------
>> 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
>

-------------------------------------
This sig is dedicated to the advancement of Nuclear Power
Tommy Nordgren
tommy.nordgren@chello.se




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


Mime
View raw message