On 11/12/09 7:42 PM, tinca wrote:
Hello,

In my jar task file include follows this:
http://old.nabble.com/Produce-multiple-jars-from-the-same-project-td26230810.html

task X ...
from sourceSets.main.classes
   include 'my/package/**'

There's not quite enough context in the above snippet. My guess is that you haven't specified a type for the task, it should look something like:

task otherJar(type: Jar) {   // <-- don't forget the type
    from sourceSets.main.classes
    include 'com/mycompany/package2/**'
}

On execution there comes an error:
...
* What went wrong:
A problem occurred evaluating root project 'PSMC'.
Cause: Could not find method include() for arguments [my/package/**] on task
X

I may try other ways, but curious why the formerly (above) given fails.

Thanks!


--
Adam Murdoch
Gradle Developer
http://www.gradle.org

Reply via email to