How to include a Java command in ANT to run the project. I have searched the net and all examples creates a jar and then run it. I don'nt want to use a jar. I tried using below code, it is giving error that Java tag is not complete. My project is using TestNG so i need to give this command to run it - java -cp "/home/admin/A/":"/home/admin/A/lib/*" org.testng.TestNG testng.xml
My code is as below:
<target name="run" depends="jar,compile,init">
<!-- <java jar="${jar.dir}/${ant.project.name}-${ant.version}.jar" -->
<java -cp "/home/admin/A/I/S/out/production/S/":"/home/admin/A/I/State/lib/*" org.testng.TestNG testng.xml >
</java>