ANT shell srcipt execute with execute task
Hi,
I have some problems with execution of a sheel script from a execute task.
<target name="XXX">
<exec executable="gsjavabuild" dir="${product.dir.source}/master">
<arg line="build master ${bsc.bench.app.name}" />
</exec>
<exec executable="${product.dir.source}/master/config_master.sh" dir="${product.dir.source}/master">
<arg line="interactive --master-dir=${bsc.bench.master.app.dir} --worker-dir=${bsc.bench.worker.app.dir} --app-name=${bsc.bench.app.name}" />
</exec>
</target>
The first exec task is working well and generate the shell script in the ${product.dir.source}/master/ directory. This script is the one that is called in the second exec task.
The problem is the execution of the second task. I have tried several changes on executable and dir attributes but the shell script is not executed. I have tried :
executable="config_master.sh" dir="${...}/master"
-> config_master.sh is not found (not in the current directory)
executable="${...}/master/config_master.sh" dir="${...}/master"
Is there a solution to change the current working directory ?
Thanks
Christophe

