ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Conor MacNeill <>
Subject Re: Generate manifest classpath with relative paths
Date Mon, 11 Jul 2005 12:06:52 GMT

Martin Olsson wrote:
> Hi,
> At runtime my program is stored like this:
> ./myprogram.jar
> ./lib/commons/commons-net.jar
> ./lib/commons/commons-configuration.jar
> ./lib/spring/spring_jar1.jar
> ./lib/spring/spring_jar2.jar
> ./lib/some/other/jarfile.jar
> There is a ton of other .jar files too organized in the directory tree
> below ./lib/ and there is so many of them that I can't just put all of
> them directly in the lib directory.

In the past I've used something like this

  <property name="" location="lib/app"/>

    <pathconvert dirsep="/" pathsep=" " property="war.classpath">
      <map from="${}" to="lib"/>
        <fileset dir="${}">
          <include name="*xwork*"/>
          <include name="*webwork*"/>
          <include name="*velocity*"/>
          <include name="*ognl*"/>

          <include name="*oscore*"/>
          <include name="*osuser*"/>
          <include name="*sitemesh*"/>
          <include name="*commons-logging*"/>
          <include name="*util-general*"/>
          <exclude name="*.tld"/>

    <war webxml="${appconf.dir}/web.xml" warfile="${war.file}">

        <attribute name="Class-Path" value="${war.classpath}"/>


Some variation on that should get you going.


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

View raw message