Ant script to load and compile .java files
Hi,
I have a File uploading utility that loads WTDocuments to Windchill.
I want to load this package onto Windchill and compile it using ant script.
So far, I have managed to copy the package (which is a bunch of .java files) onto the src folder using the following ant script:
<target name="taskUnzip">
<unzip src="${packagestructure}/myuploadutility.zip" dest="${wc_src}"/>
</target>
I use the following task to compile it:
<target name="compile">
<javac srcdir="${wc_src}" destdir="${wc_codebase}"/>
</target>
But this throws several errors similar to :
\myuploadutility.java:5: error: cannot find symbol
[javac] import com.ptc.netmarkets.model.NmOid;
[javac] ^
[javac] symbol: class NmOid
[javac] location: package com.ptc.netmarkets.model
So I think I am writing the tasks the wrong way. So, how to load the package, compile it, so that the .class files get stored in codebase?
Please help.
Thanks in advance.
Note: I know it's possible to make a jar file of all the .class files directly and put them into codebase. However, requirement specifies a .zip file containing .java files only.

