Not able to create a Zip archive in Gradle

Viewed 20894

I'm trying to create a simple Zip archive that contains all the javascript files in my resources directory

Here's the code:

  task zip(type:Zip){
    from ('resources/'){
        include '*.js'
    }
    into 'resources'
}

This does not seem to work for some reason. I've heard many people saying that all you need is a from and into to create an archive. Can someone help me here ? I'm using Gradle v1.0. Thanks in advance.

2 Answers
Related