Hello Paul, I see how your solution worked in your multi-project environment, but unfortunately it is not justifiable in my case with simple need to exclude just one folder. But thanks for providing links to the latest version of your solution. They may be helpful in bigger projects. I also hope there will be more standard way to handle includes/excludes one day.
On Wed, Nov 24, 2010 at 12:57 AM, Paul Speed-2 [via Gradle] <[email protected]> wrote: > Ooooh... my thread. :) > > For those interested, I rolled my standard methods into a plug-in: > > http://meta-jb.svn.sourceforge.net/viewvc/meta-jb/trunk/dev/gradle-plugins/shared-tree.gradle?revision=4150&view=markup > > And an example of using it to target just a particular package: > http://meta-jb.svn.sourceforge.net/viewvc/meta-jb/trunk/dev/ext/cmd/build.gradle?revision=4192&view=markup > > Hope it helps someone. > -Paul > > On 11/23/2010 5:32 PM, Rene Groeschke wrote: >> hi omax, >> >> There was a discussion about that on the mailinglist. have a look at >> this thread: >> http://www.mail-archive.com/u...@.../msg02755.html >> >> If you need further help, don't hesitate to ask. >> >> regards, >> René >> >> Am 23.11.10 23:15, schrieb omax: >>> >>> Hello, >>> >>> I have usual setup of my sourceSets as following: >>> >>> sourceSets { >>> main { >>> java { >>> srcDir 'src' >>> } >>> } >>> } >>> >>> But some java sources are not compilable and I would like to exclude >>> them. >>> Is there any easy way to do it with gradle? >>> >>> I could do it with Maven using standard excludes as following: >>> >>> <plugin> >>> <artifactId>maven-compiler-plugin</artifactId> >>> <configuration> >>> <excludes> >>> <exclude>**/uncompilable/**</exclude> >>> </excludes> >>> </configuration> >>> </plugin> >>> >> >> >> -- >> ------------------------------------ >> Rene Groeschke >> >> [hidden email] >> http://www.breskeby.com >> http://twitter.com/breskeby >> ------------------------------------ >> > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > > > ________________________________ > View message @ > http://gradle.1045684.n5.nabble.com/Exclude-some-java-classes-packages-from-compilation-sourceSets-tp3277622p3277674.html > To unsubscribe from Exclude some java classes packages from > compilation/sourceSets, click here. -- Thanks, Oleksandr Maksymchuk -- View this message in context: http://gradle.1045684.n5.nabble.com/Exclude-some-java-classes-packages-from-compilation-sourceSets-tp3277622p3277983.html Sent from the gradle-user mailing list archive at Nabble.com.
