ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ed Randall <>
Subject Re: Lib in War Does Not Accept Path-like structures
Date Sun, 25 May 2008 07:15:44 GMT


I have the same complaint about Ant.  Nothing is orthogonal...!

However here is my workaround - 
note that, as written, this depends on all 3rd-party .jar files being in the
same location:

  <property name="libs3p.dir"		location="/apps/java/lib"/>

  <path id="classes.compile">
    <pathelement path="${libs3p.dir}/first.jar"/>
    <pathelement path="${libs3p.dir}/second.jar"/>

  <target name="warfile">
    <pathconvert pathsep="," property="war.libs" refid="classes.compile">
      <map from="${libs3p.dir}/" to=""/>
    <war destfile="myapp.war">
      <lib dir="${libs3p.dir}" includes="${war.libs}"/>



View this message in context:
Sent from the Ant - Dev mailing list archive at

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

View raw message