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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to