Am Di, 6.04.2010, 11:45, schrieb Geronimo M. H.:
Hi Geronimo,
I think you're mixing copy and archive tasks.

try this one instead:

 task myTask(type:Jar) {
    def files = ... collect ...
    from files

    basename 'testArchive'
 }

I'm not sure about the "from". I have something in mind, that the syntax
here was updated recently to "with" or something like that. it depends on
which gradle version you're working with.

regards,
Rene



> Hello,
>
>
> I tried to extend a task, where I collect things for the installer, by an
>  archive action, but that failed with:
>
> error "Could not find method jar() for arguments"
>
> task myTask << { def files = ... collect ...
>
> copy { from files into  myTempDir }
> ...
>
>
> jar { basename 'testArchive' from myTempDir }
> }
>
>
> Is that function-style task (?) only available for 'copy' or what am I
> missing?
>
> kind regards
>
> Geronimo
>
>
>
> ---------------------------------------------------------------------
> 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