Hello All,
I am having trouble getting
ANT to compile some code. ANT says that the build is successful, but the files are not compiled and they are not moved from the development directory to the deployment directory.
I have the following properties in my build.xml file:
<property name="srcDirWeb" location="src/org/novastaff/web"/>
<property name="classDirWeb" location="classes/org/novastaff/web"/>
<property name="deployClassWeb" location="/usr/local/tomcat/jakarta-tomcat-4.1.27/webapps/EarnCalc-v1/WEB-INF/classes/org/novastaff/web"/>
I can compile the code from the command line with:
javac -classpath /usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/servlet.jar:classes:. -d classes src/org/novastaff/web/EarningsCalculator.java
My ANT target looks like this:
<target name="compile" depends="copy-xml"
description="Compiles the
java source files">
<javac srcdir="${srcDirWeb}"
destdir="${classDirWeb}"
classpath="/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/servlet.jar:classes:."
includes="org/novastaff/web/**"/>
</target>
My guess is that the error is in the classpath, but I could be wrong.
Any help wit this problem would be greatly appreaciated!
Thanks,
Elton