Sunday, January 19, 2014

Ant task to invoke a jar file

Ant task to invoke a jar file





 
<target name="start-jar">

        <echo message="Starting the jar file "/>

        <java jar="${jar_path}.jar" fork="true">

            <arg value="${args}"/>

            <arg value="${args}"/>

        </java>

</target>

Specify the jar path and pass the arguments.
Happy Coding.

--
Thank you.

Regards,
Kaleeswaran S

No comments:

Post a Comment