On Thu, 2009-12-17 at 14:03 +0100, Hans Dockter wrote:
> 
> 
> On Thu, Dec 17, 2009 at 1:54 PM, Russel Winder
> <[email protected]> wrote:
>         Working by analogy with what is in Gradle's build.gradle --
>         which I
>         assume actually works -- I tried:
>         
>                task srcZip ( type : Zip , description : 'Create the
>         zip file of the source.' ) {
>                  classifier = 'src'
>                  into ( gantPrefix ) { from ( projectDir ) { include
>         'src/' } }
>                }
> 
> The order above does not look right.

It is nigh on exactly what is in the Gradle build.gradle -- I had
assumed that was more or less a definition of what is right.

Sadly I just tried gradle srcZip in a Gradle branch and it worked fine.

This means there must be some contextualization for the Tar and Zip
tasks and their subtypes that is actually mandatory and present in the
Gradle build but I haven't yet got in the Gant build. 
> 
> What about:
> 
> task srcZip(type: Zip) {
>     from(projectDir) { include 'src' }
>     into someOtherDir
> }

NPE
> 
> task srcZip(type: Zip) {
>     from sourceSets.main.allSource
>     into someOtherDir
> }

NPE

Basically it seems that all the Zip and Tar tasks ever do is generate
NPEs

:-(((((

Except when I try running the Gradle srcZip in which case no NPE.

Flumoxed,


-- 
Russel.
=============================================================================
Dr Russel Winder      Partner
                                            xmpp: [email protected]
Concertant LLP        t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,   f: +44 8700 516 084   voip: sip:[email protected]
London SW11 1EN, UK   m: +44 7770 465 077   skype: russel_winder

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to