thank you very much
-----Original Message-----
From: Stefan Bodewig [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 18, 2001 1:38 AM
To: [EMAIL PROTECTED]
Subject: Re: Question about exec and execOn and ant installation
<[EMAIL PROTECTED]> wrote:
> It seems that Ant requires the script antRun in order to run any
> exec, execon commands. Is there a reason for this? Or i am i wrong,
> and i can specify any script for that?
It requires antRun if all three conditions below are true:
(1) You want to execute the command in a directory different than your
current working directory (the project's basedir will be the default
unless you set the dir attribute of the exec task).
(2) You are using a JDK < 1.3
(3) You are not using Mac OS.
The reason for this is, that there is no way to hand a working
directory to a spawned process prior to JDK 1.3.
Ant will always look for the script in ${ant.home}/bin and the wrapper
scripts that ship with Ant will set the ant.home property correctly.
Your wrapper scripts can set this property themselves, but Ant will
always look for ${ant.home}/bin/antRun(.bat) - so you don't have as
much control over it as you'd like.
Stefan