ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "mail.laconiadatasystems.com" <webmas...@laconiadatasystems.com>
Subject Re: ant/javac prepends destdir to classpath
Date Sat, 31 Jul 2004 13:06:30 GMT
Klas-
Does the same hold true if you use package exclude and package include ?
 <javac srcdir="${src}"
         destdir="${build}"
         includes="A/**"
         excludes="X/**"
         classpath="xyz.jar"
         debug="on"
  />
replik vars├ągod,
-martin
----- Original Message -----
From: "Klas Eriksson" <klas.eriksson@micronic.se>
To: <user@ant.apache.org>
Sent: Thursday, July 29, 2004 2:25 AM
Subject: ant/javac prepends destdir to classpath


> Hi
>
> I have illegal code, A.java, that doesn't compile using 'javac' manually
at
> cmd-line.
> Fine.
>
> But when I use ant/javac A.java compiles, and that's wrong since it refers
> to a package it shouldn't be able to access. (This package is available
for
> other code in directory X.)
> The problem is that ant/javac seems to automatically prepend the
> destdir="X" to the classpath when compiling.
> Is this a bug or how to I prevent ant/javac to improvise its own
classpath?
>
> When i run "ant -verbose" I clearly see that the directory "X" is
prepended
> to the classpath by ant.
> The problem is both in ant v1.5 and v1.6.
>
> /klas
>


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


Mime
View raw message