ant-dev mailing list archives

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

Peter,

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"/>
  </path>


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


Regards

Ed

-- 
View this message in context: http://www.nabble.com/Lib-in-War-Does-Not-Accept-Path-like-structures-tp14654383p17455167.html
Sent from the Ant - Dev mailing list archive at Nabble.com.


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


Mime
View raw message