Hi !
I've read the doc but I don't see exactly to do so I prefer ask you some
help ! :)
When I call a specific target, I want to put eventually an optional
property to true.
But in the body of this target, this option has to be interpreted to
give an special option !
I wonder if I could do this with the <condition> task and how could I do
?
I will give you an example :
* If you consider the target :
<target name="idl2java" depends="init">
<echo message=" Compiling the OMG IDL file ${file}" />
<exec executable="${idl2java.compiler}" os="SunOS" >
<env key="LD_LIBRARY_PATH"
path="${ORB.lib.dir}:${env.LD_LIBRARY_PATH}" />
<arg line="--auto-package --tie --output-dir ${destdir} ${flags}
${file}" />
</exec>
</target>
* If I put the property auto-package to yes or by default, I want to
execute :
<arg line="--auto-package --tie --output-dir ${destdir} ${flags}
${file}" />
* And If I put it to No :
<arg line="--tie --output-dir ${destdir} ${flags} ${file}" />
Thanks,
Romain
--
R. Rouvoy
------------------------------
Romain ROUVOY <[EMAIL PROTECTED]>
GOAL Team - LIFL (Laboratoire d'Informatique Fondamentale de Lille)
USTL Lille 1 - France
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>