Thanks!, I will try it, but won't it copy over the java files as well? Can I control the inclusion / exclusion for it?
Shay Adam Murdoch-2 wrote: > > > > Shay Banon wrote: >> Hi, >> >> What is the simplest way to configure gradle to copy non java files >> that >> exists within src/main/java or src/test/java into their respective target >> classes directory? >> >> > > Add 'src/main/java' and 'src/test/java' as resource directories. Gradle > will ignore any files it finds in the resource dirs which are also > included in the java dirs (or groovy or scala dirs, if appropriate). > > To do this, you can do something like: > > sourceSets.main.resources.srcDir 'src/main/java' > sourceSets.test.resources.srcDir 'src/test/java' > > > -- > Adam Murdoch > Gradle Developer > http://www.gradle.org > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > > -- View this message in context: http://old.nabble.com/Copy-non-java-files-into-the-target-directory-tp26520594p26521337.html Sent from the gradle-user mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
