You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Kim Albee <ka...@einsof.com> on 2004/01/20 03:37:12 UTC

Setting up javac task and having it resolve dependencies

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@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org