Is there likely to be a cleaning distinction in this generated source
versus other build objects?

Will the IDE have difficulties if its source directories are completely
deleted?

Should there be a distinct clean task so that default cleaning doesn't
remove them?

I am definitely in agreement that generated source shouldn't look like
source that I want in my VCS.  It should definitely not go in src.

Maybe a new folder with its own clean schedule would be good such as
"/generated-src/main/java" or something to that effect.  Is generated
source tied to an existing source or resources directory?  Should there be
a correlation between /src/main/java and /generated-src/main/java?

I don't have strong feelings on how things are named, but I agree with
several people that generated source should not be checked in to version
control, and therefore should not be under /src.

Keep up the good work everyone, and thank you to everyone who makes gradle
great :)



Jeremy D. Young
Web Architect
O'Reilly Auto Parts

Philip Crotwell <[email protected]> wrote on 05/10/2011 11:09:12 AM:

> From: Philip Crotwell <[email protected]>
> To: [email protected]
> Date: 05/10/2011 11:16 AM
> Subject: Re: [gradle-dev] Re: using generated resources in the IDE
>
> I think it is more important for the generated source directory
> structure to be similar to the way normal source is handled in gradle
> than to be similar to maven. The maven structure with 2 "generated"
> directories seems awkward to me. I would rather have a single well
> known directory inside the build directory that "acts" like src does
> in the project directory. Subdirectories for different purposes would
> be put inside just as main and test are put inside the projectDir/src
> and hopefully the java plugin would automagically notice them.
>
> Philip
>
> On Tue, May 10, 2011 at 11:15 AM, Peter Niederwieser
> <[email protected]> wrote:
> >
> > Spencer Allain wrote:
> >>
> >> I suppose to more closely match the maven default directory structures
> >> that something like this would be more "compliant":
> >>
> >> build/generated-src/main/java
> >> build/generated-src/main/resources
> >>
> >
> > As far as I know, the Maven conventions are:
> >
> > target/generated-sources
> > target/generated-resources
> >
> > --
> > Peter Niederwieser
> > Developer, Gradle
> > http://www.gradle.org
> > Trainer & Consultant, Gradleware
> > http://www.gradleware.com
> > Creator, Spock Framework
> > http://spockframework.org
> >
> >
> > --
> > View this message in context: http://gradle.1045684.n5.nabble.com/
> using-generated-resources-in-the-IDE-tp4363800p4384753.html
> > Sent from the gradle-dev mailing list archive at Nabble.com.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list, please visit:
> >
> >    http://xircles.codehaus.org/manage_email
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>

This communication and any attachments are confidential, protected by 
Communications Privacy Act 18 USCS § 2510, solely for the use of the intended 
recipient, and may contain legally privileged material. If you are not the 
intended recipient, please return or destroy it immediately. Thank you.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to