[prev in list] [next in list] [prev in thread] [next in thread]
List: ant-dev
Subject: Re: Lib in War Does Not Accept Path-like structures
From: Ed Randall <ed.randall () ingenotech ! com>
Date: 2008-05-25 7:15:44
Message-ID: 17455167.post () talk ! nabble ! com
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic