Hi!
I am new to the Ant Build process & I am looking for some condition type build parameter in build.xml so that the user can use some command line option to execute the same target but with some modification & if not passed then the normal execution take place. I want something like this
<!-- compiling of java files done here normal "ant"-->
<target name="compile">
<javac srcdir="${src}" destdir="${src}" classpathref="classpath"/>
<echo message="compiling done"/>
</target>
<!-- Excute when some argument is passed something like conditional statemet-->
<!-- compile without wsdl when "ant withoutwsdl"-->
<target name="compile">
<javac srcdir="${src}" destdir="${src}" excludes="wsdl/**" classpathref="classpath"/>
<echo message="Compiled without WSDL done."/>
</target>
So that i dont have to make much change in the build process.
Please help me out.
Thanks.