I am completely unfamiliar with Ant and I need to add a couple of jars to my classpath, compile a couple of .java files and run a junit test, all in Ant. I watched several online tutorials and tutorials, but didn't seem to be able to wrap my head around the whole process of writing xml.
All previously written codes are in the same directory with the name XXX.
There XXXare two jars that I need to add to my classpath with export CLASSPATH=$CLASSPATH:jar1:jar2, two java files that I compile with javac *.java, one of which contains several junit tests that I run with java org.junit.runner.JUnitCore Tests. build.xmlwill also be in XXX(I suppose).
So far, I have the following for compilation, although I think there are a lot of things missing.
<?xml version="1.0"?>
<project name="EtlAutomation" default="compile" basedir=".">
<property name="src" value="${basedir}"/>
<target name="compile">
<javac srcdir="${src}" destdir="${src}"/>
</target>
</project>
*.java ? export CLASSPATH, , , junit ?
- , . - unix, . Ant, , .