ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <dave.alvar...@remanresource.com>
Subject Way to simplify what is in my project class path?
Date Wed, 01 Oct 2008 21:58:20 GMT
Hi,

Currently I'm listing out each JAR file from a particular directory to put into my project
class path.  I was wondering if there is a way to say, include every jar file from that directory.
 Right now, here's what I have that I hope to simplify:

 <!-- set ant class path -->
  <path id="project.class.path">
   	<pathelement path="${basedir}/build/classes"/>   	
	<pathelement path ="${webInfDir}/lib/commons-beanutils-1.7.0.jar"/>
    <pathelement path ="${webInfDir}/lib/commons-collections-3.2.jar"/>
    <pathelement path ="${webInfDir}/lib/commons-digester-1.8.jar"/>
    <pathelement path ="${webInfDir}/lib/commons-logging-1.1.1.jar"/>
    <pathelement path ="${webInfDir}/lib/commons-fileupload-1.0.jar"/>
    <pathelement path ="${webInfDir}/lib/jstl.jar"/>
    <pathelement path ="${webInfDir}/lib/myfaces-api-1.2.4.jar"/>
    <pathelement path ="${webInfDir}/lib/myfaces-impl-1.2.4.jar"/>
    <pathelement path ="${webInfDir}/lib/NPSConfigDelegate.jar"/>
    <pathelement path ="${webInfDir}/lib/npsimplugin.jar"/>
	<pathelement path ="${webInfDir}/lib/standard.jar"/>
	<pathelement path ="${webInfDir}/lib/tomahawk-1.1.7.jar"/>
	<pathelement path ="${webInfDir}/lib/jdbc.jar"/>
  	<pathelement path ="${webInfDir}/lib/log4j-1.2.8.jar" />
  	<pathelement path ="${webInfDir}/classes"/>
    <pathelement path ="${classpath}"/> 
   	<!--
   	The following jars are required to compile everything
   	However they should not be in the ear file
   	-->
   	<pathelement location="${weblogic-jar-path}"/>  	
   	<pathelement location="${scp-jar-path}"/>     	
  </path>

Thanks, - Dave

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


Mime
View raw message