ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick Sansburn" <>
Subject RE: A very long classpath problem.
Date Fri, 07 Mar 2003 21:19:49 GMT
Have you tried using the "classpathref" in your javac task?  This way
you would only have to enter the classpath once.

<path id="classpath">
  <fileset dir="${catalina_home}\common\lib">
    <include name="xerces.jar" />
  <fileset dir="${app_root}\WEB-INF\lib">
    <include name="axis.jar" />
    <include name="jaxrpc.jar" />
    ... More includes here

<target name="compile" description="Compiles all source code.">
  <javac srcdir="${src.dir}" 

-- Rick
-----Original Message-----
From: Alexey Solofnenko [] 
Sent: Friday, March 07, 2003 4:10 PM
To: 'Ant Users List ('
Subject: A very long classpath problem.


  I just got a problem with a very long classpath (size ~44K) - javac
could not find classes. The situation happened when I reused some
subcomponent classpath in other components and many jars became
duplicated. I would rather stick with reusing - I do not want to retype
classpath for every component and deal with classpath modifications. Do
you think it should be done in <javac>? 

I tried to use <script> in 1.6 nightly and it does not seem working. Was
anybody successful using <script> in 1.6alpha.

- Alexey.

{   } Alexey N. Solofnenko
Pleasant Hill, CA (GMT-8 usually)

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message