H
harryos
hi
i have an ant buildfile in which i need to run java with different
arguments
<target name="runwith4andImage2" depends="jar">
<java fork="true" classname="${main-class}">
<classpath>
...
</classpath>
<arg value="${folder1}" />
<arg value="${folder2}/image2.jpg" />
<arg value="4" />
</java>
</target>
<target name="runwith7andImage1" depends="jar">
<java fork="true" classname="${main-class}">
<classpath>
...
</classpath>
<arg value="${folder1}" />
<arg value="${folder2}/image1.jpg" />
<arg value="7" />
</java>
</target>
....
here i think it will be better to pass the arguments image1.jpg and 7
along with ant call and use those arguments to set arg values inside
the target.I went thru the docs but I couldn't figure out how to do
it.
in short i need something like
can someone tell me how i can do this?
thanks
harry
i have an ant buildfile in which i need to run java with different
arguments
<target name="runwith4andImage2" depends="jar">
<java fork="true" classname="${main-class}">
<classpath>
...
</classpath>
<arg value="${folder1}" />
<arg value="${folder2}/image2.jpg" />
<arg value="4" />
</java>
</target>
<target name="runwith7andImage1" depends="jar">
<java fork="true" classname="${main-class}">
<classpath>
...
</classpath>
<arg value="${folder1}" />
<arg value="${folder2}/image1.jpg" />
<arg value="7" />
</java>
</target>
....
here i think it will be better to pass the arguments image1.jpg and 7
along with ant call and use those arguments to set arg values inside
the target.I went thru the docs but I couldn't figure out how to do
it.
in short i need something like
can someone tell me how i can do this?
thanks
harry