On 25/02/2011 11:22, Sebastian Barszczewski wrote:
Ok, i am almost there
apply plugin:'groovy'
sourceSets {
main {
groovy {
srcDir 'src/groovy'
}
}
}
task datamining(type: Jar){
baseName = 'myJar'
destinationDir = file('lib')
from sourceSets.main.groovy
}
The "from" method includes all groovy sources under the src/groovy folder. How
can i restrict that to a certain package?
Ok, looks like you've already worked out the stuff from my last answer
:). You can also add filtering to the "from". See the CopySpec javadoc
for an example:
http://gradle.org/0.9.2/docs/javadoc/org/gradle/api/file/CopySpec.html
and there are other examples in section 15.6 of the manual.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email