On Oct 31, 2009, at 3:36 PM, anschoewe wrote:

> 
> 
> 
> hdockter wrote:
>> 
>> 
>> You could do some awkward stuff to make this work for 0.8.
>> 
>> In trunk we have a straight forward solution for that.
>> 
>> In which one would you be interested?
>> 
> 
> I'll take the 'trunk' solution please. Might as well do it right, assuming
> version 0.9 will be released soon. 

It took a bit longer until everything has been implemented. The API for the 
archives has changed compared to 0.8. You can specify what is in an archive now 
in the same way as you specify what needs to be copied. We call this a 
copySpec. Either you specify it directly in the archive or, in your case, you 
can do:

mySpec = copySpec {
   from '...'
   into // in the context of an archive this is the same as the prefix of an 
ant zipfileset
}

task war1(type: War) {
   from mySpec
   from ....
}

task war2(type: War) {
   from mySpec
   from ....
}

- Hans

--
Hans Dockter
Gradle Project Manager
http://www.gradle.org

> 
> Thanks,
> 
> Andrew
> -- 
> View this message in context: 
> http://old.nabble.com/Only-bundle-sub-project-jars-in-WAR--not-transitive-depencies-tp25965185p26142848.html
> Sent from the gradle-user mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
> 
>    http://xircles.codehaus.org/manage_email
> 
> 


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to