Annotation Processing in Gradle

Mark Fortner phidias51 at gmail.com
Thu Oct 18 16:55:32 PDT 2012


I'd have to agree with Danno on this one.  The problem is the clutter
factor.  When you have a large number of classes and resources stored
together it gets harder to find what you're looking for when you're
scanning through the project tree.  It's easier if the resources are
separated.  It's also difficult to build with maven if you don't follow the
standards. :-)

Cheers,

Mark




On Thu, Oct 18, 2012 at 4:26 PM, Richard Bair <richard.bair at oracle.com>wrote:

> I don't know, for example, I have .java files, .css files, .png and other
> files, .properties files (that are not build related), and then this
> property file which actually is build related. It seems like storing the
> .css files / .png files etc along with the source files in one tree is
> cleaner (that is, from the IDE I only have one tree expanded instead of
> two). I'm wondering if it is just a preferences thing or is there a
> compelling argument one way or the other?
>
> On Oct 18, 2012, at 4:00 PM, Danno Ferrin wrote:
>
> > I would much prefer that it went to the maven/gradle src/main/java
> style, with resources and java sources.  There is less text in the build
> file and what is left is really what is relevant to the peculiarities of
> the build.
> >
> > On Thu, Oct 18, 2012 at 3:38 PM, Richard Bair <richard.bair at oracle.com>
> wrote:
> > Found it. For some reason, BuilderProcessor.properties is not being
> copied over. So the Gradle says:
> >
> > project(':build-tools') {
> >     sourceSets {
> >         main {
> >             java {
> >                 srcDirs = ['src/java']
> >                 exclude "META-INF/services/*"
> >             }
> >             resources {
> >                 srcDirs = ['src/java']
> >                 include "META-INF/services/*"
> >             }
> >         }
> >     }
> > }
> >
> > So I guess .properties files are not copied as part of the "java" dir
> normally. I wonder what else isn't copied normally (we've got a bunch of
> non .java files that are in the java dir. We don't use a separate resources
> dir).
> >
> > Richard
> >
> >
> >
> > --
> > There is nothing that will hold me back.  I know who I am....
> > I remember wher I came from, and I feel stronger for knowing.
> > Zane, Ninja of Ice.  Ninjago S01E07
> >
>
>


More information about the openjfx-dev mailing list