On Aug 18, 2009, at 6:10 AM, Adam Murdoch wrote:
Peter Niederwieser wrote:
Think I figured it out myself. Maybe there is an even better
solution that
doesn't create the war file in the first place?
When (if?) we reuse the copy task's CopySpec with the archive tasks,
then it will be very simple, as both the war task and the
explodedWar task can use exactly the same spec. Something like:
war {
// declare the stuff to be included in the war
from('some-dir') {
into('WEB-INF')
include '*.xml'
}
... some other stuff for the war ...
}
task explodedWar(type: Copy) {
from war.rootSpec // reuse the declaration from the war task
into new File(buildDir, 'exploded-war')
}
I'm looking forward to tackling this for 0.9.
- Hans
--
Hans Dockter
Gradle Project Manager
http://www.gradle.org
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email