1

I have some jar files which are added in the CLASS_PATH of the batch process.So at the end of the batch process all I have to do is just to use java command shown below

java -cp %CLASS_PATH% com.web.MainClass arg1

I am planning to do the same thing using Ant. Any suggestion of how my target should look like?

skaffman
  • 398,947
  • 96
  • 818
  • 769

1 Answers1

4

You use the <java> Ant target. See docs.

For example:

<java classname="com.web.MainClass">
  <arg value="arg1"/>
  <classpath>
    <pathelement location="..."/>
    <pathelement location="..."/>
  </classpath>
</java>
skaffman
  • 398,947
  • 96
  • 818
  • 769