Wouldn't it be easier to remove the war.bundle property during development and putting it back later if you need it? Worst case, adding a copy to put it in your WEB-INF/lib before building a WAR also seems more straight-forward...
--- Begin Message ---
Here the gist:
For various reasons, during development of a web application I use
tomcat's cross context feature. This means that specific jar files need
to be in tomcat's shared lib and not in the WEB-INF/lib directory. I am
trying to write a preGoal to set the war.bundle property to false on a
particular dependency during development.
What I have so far is:
<j:forEach var="lib" items="${pom.artifacts}">
<j:set var="dep" value="${lib.dependency}"/>
<j:if test="${dep.getProperty('war.bundle')=='true' and
dep.artifactId=='bms'}">
<j:expr value="${dep.setProperty('war.bundle','false')}" />
<ant:echo>Found bms</ant:echo>
</j:if>
</j:forEach>
The j:expr line does not work and I'm not sure how one would do this.
Thanks,
-Trav
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--- End Message ---
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]