You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Ed Randall <ed...@ingenotech.com> on 2008/05/25 09:15:44 UTC

Re: Lib in War Does Not Accept Path-like structures

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