Alternatively you can do:
jar {
from sourceSets.java.allJava
}
This adds the Java source files, not the properties. The latter are already
added by default.
- Hans
On Thu, Feb 18, 2010 at 11:02 PM, RenŽé Gröschke <[email protected]>wrote:
> Hi Jan,
>
> Jan Ehrhardt schrieb:
>
> Hello,
>>
>> I'm using the Java plugin and want to include my Java source code in the
>> resulting JAR. How to do that?
>>
> This should work:
>
> jar.doFirst{
> sourceSets.main.java.srcDirs.each {
> from it
> }
> }
>
>
> cheers,
> René
>
> --
> ------------------------------------
> Rene Groeschke
>
> [email protected]
> http://www.breskeby.com
> http://twitter.com/breskeby
> ------------------------------------
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
>