Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
Setting up javac task and having it resolve dependencies

Setting up javac task and having it resolve dependencies

2004-01-19       - By Kim Albee

I am setting up Ant to do nightly builds of a complete source tree -- but in
the javac task, it errors off when there are dependencies in a package
different from the current package, for example here's a sample source tree:

src/
   com/
       company/
               bean/
               bo/
               persistent/

The bean classes have dependencies in the bo and persistent packages -- but
I get errors from the javac  for the bean classes that it cannot resolve
these dependencies -- even though it's the same source tree.

Please help!

Here's a sample of the javac task from my build.xml file:

 <property name="src" location="/jcvs/repository/src" />
 <property name="build" location="/jcvs/classes" />

   <target name="compile" description="Compile classes">
           <javac srcdir="${src}"
                  destdir="${build}"
                  classpath="${build}:${JAVA_HOME}/lib"
                   />
   </target>

Thanks,
Kim



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)



©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.