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

[1243 byte] By [chamerlinga] at [2007-10-3 4:31:09]
# 1
In fact ${product.dir.source}/master returns a value like ./path/master and this script invocation does not work...
chamerlinga at 2007-7-14 22:34:31 > top of Java-index,Java Essentials,Java Programming...