ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Judy Sowell <jsow...@avolent.com>
Subject RE: classpath question
Date Mon, 10 Dec 2001 17:16:36 GMT
It is supposed to work to put java source files in the classpath. Outside of
Ant, this works. I'm just trying to find out why it doesn't seem to work
with Ant, or we are doing something wrong.

-----Original Message-----
From: Steve Loughran [mailto:steve_l@iseran.com]
Sent: Friday, December 07, 2001 6:49 PM
To: Ant Users List
Subject: Re: classpath question



----- Original Message -----
From: "Judy Sowell" <jsowell@avolent.com>
To: <ant-user@jakarta.apache.org>
Sent: Friday, December 07, 2001 2:27 PM
Subject: classpath question


> Hi all,
>
> We have tried several things to get Ant to allow us to add java source
files
> to the classpath, but have been unsuccessful in getting it to work.
>
> When we do a build outside of ant, just using "javac -classpath ....."
where
> classpath includes some java source directories (because of cross
> dependencies between some classes/packages), it works fine.
>
> However, if instead we run ant with -classpath (the same classpath with
some
> java source dirs), the compile fails on an import on one of the
dependencies
> on one of the source files in the classpath. We also tried setting the
> classpath inside the build.xml file. That didn't work either.

I dont think you should put source files on the classpath for <javac>, just
binary stuff

If you want to include source from more than one source tree into a javac,
use the <src> nested element.

-Steve


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message