ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Christiansen" <Nathan_Christian...@tni.com>
Subject RE: classpath
Date Wed, 06 Aug 2003 15:43:22 GMT
Have you tried using a fileset in your <path> or <classpath> element?

We have used the following code, and it picks up all jar files in a directory:

<classpath>
  <fileset dir="${resources.lib.dir}">
    <include name="*.jar"/>
  </fileset>
</classpath>

You can even pull from several directories:

<classpath>
  <fileset dir="${publish.common.lib.dir}">
   <include name="servlet.jar"/>
  </fileset>
  <fileset dir="${lib.shared.dir}">
    <include name="*.jar"/>
  </fileset>
  <fileset dir="${lib.common.dir}">
    <include name="*.jar"/>
  </fileset>
  <fileset dir="${lib.dir}">
    <include name="*.jar"/>
  </fileset>
  <fileset dir="${resources.lib.dir}">
    <include name="*.jar"/>
  </fileset>
</classpath>

-- Nathan Christiansen
   Tahitian Noni International
   http://www.tahitiannoni.com


-----Original Message-----
From: Curtis Yanko [mailto:curt_yanko@uhc.com]
Sent: Wednesday, August 06, 2003 6:03 AM
To: Ant Users List
Subject: classpath



We seem to build our classpath using the
<path id="xyz">
  <pathelement location=${property.to.our.jarfile} />
</path>


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


Mime
View raw message