ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Monsorno <monsorno-nos...@gmx.de>
Subject Re: sql-task uses system classloader
Date Thu, 20 Jun 2002 09:20:24 GMT
Stefan Bodewig <bodewig@apache.org> writes:

> On Wed, 19 Jun 2002, Martin Monsorno <monsorno-nospam@gmx.de> wrote:
>
>> I do not know if this is a bug, but if not, there should be a BIG
>> warning in the documentation.
>
> Well, it is yet another manifestation of
> <http://jakarta.apache.org/ant/faq.html#delegating-classloader>.
>
> A known problem with no real solution yet.

Two suggestions:

- a fork-attribute like with the java-task could make it possible to
  start a new JVM with different classpath setting

- it would be very handsome to make ant, if started with the -v
  option, not to print

      [sql] Loading COM.ibm.db2.jdbc.net.DB2Driver using
      AntClassLoader with classpath the.classpath.defined.in.sql.task 

  but instead:

      [sql] Loading COM.ibm.db2.jdbc.net.DB2Driver using system
      classloader with /CLASSPATH/ and
      AntClassLoader with classpath the.classpath.defined.in.sql.task 


And one more question:  Why does ant use the environment variable
CLASSPATH anyway?  It would be OK to restrict builds to define their
own classpath.  (or to make it configurable)


-- 
Martin

--
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