ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "james" <ja...@unikala.com>
Subject RE: Compiling multiple source files....
Date Wed, 07 Mar 2001 22:33:12 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

make sure that CLASSPATH includes both files.


james@unikala.com


- -----Original Message-----
From: Rich Harris [mailto:rich@soggymonkey.com]
Sent: Wednesday, March 07, 2001 11:06 AM
To: ant-user@jakarta.apache.org
Subject: Compiling multiple source files....


Folks,
    I'm trying to figure out how to simultaneously build two files
that
cannot exist without the other that are located in two different
directories. How can I do it in ANT?

Here is my code. Assume that file1.java and file2.java cannot be
compiled unless the other exists.

I've tried two ways:
===============================
First attempt:
<exec dir="${SRCDIR}/Directory1" command="${JAVA_HOME}\\bin\\javac
- -deprecation "${SRCDIR}\\Directory1\\file1.java"
"${SRCDIR}\\Directory2\\file2.java"" />
===============================
Second attempt
<javac classpath="${CLASSPATH}"
              srcdir="${SRCDIR}/Directory1"
              destdir="${BUILDDIR}"
              filtering="on"
              deprecation="on"
              includes="${SRCDIR}\\Directory2\\file2.java"
              excludes=""
              />
    </target>
===============================


Not sure what to do here. I'm stuck in a situation with someone
else's
code and there are lots of circular dependencies. HELP ME!

Thanks for your time,
Rich


-----BEGIN PGP SIGNATURE-----
Version: PGP Personal Privacy 6.5.8

iQA/AwUBOqa3KAXY7J7Vn/AcEQLWQgCdF59njPaj6z+2EefZWi48EZtIh5MAn2rI
Mqzl+WuXUyD+i73x+JtKsYXK
=t7K3
-----END PGP SIGNATURE-----


Mime
View raw message