The core problem in trying to be helpful here is that you give too little information about what you are trying to do to be concretely helpful.
Apologies also if I am wading in half way through a thread and this
information has been given earlier but . . . well you do say "back to
the start line".
On Fri, 2009-12-11 at 01:30 -0800, tinca wrote:
> Hello,
>
> After hours of struggling to get the gradle (groovy) way I must come back to
> the start line. What is your advice for a beginner (a long time Java
> programmer), who has little or none knowledge in maven, ivy, groovy, gradle
> - where to start?
If you don't know Maven is all your previous experience with Ant?
The place to start is at the beginning. What does your project look
like? Is it structure according to the Maven standard structure or
something different? What sort of build product are you trying to
create?
> I understand many pieces from what I read and tried till now. It's just they
> don't come together. As soon as I need to step beyond what I see in the user
> guide I feel lost. For example, in my previous letter a task jar defines the
> following:
> from sourceSets.main.classes
> include [path/to/classes]
Did you start with a trivial project and then add to it to to make the
project bigger and more like the final project you have, or are you
trying to work directly with the final project?
> I got an error which says: cannot find include() method.
Without seeing the file it is impossible to interpret the error you are
seeing. Sorry.
> I already know what is sourceSet(s), what is main (I can redefine it for my
> purposes). "classes" makes the first headache. My guess that this refers to
> the set of classes produced by compile task (available under buildDir
> property as defined by project). "from" means a kind of referencing to this
> set and include is the selection/filtering from that set.
Again without the file it is difficult to say anything constructive let
alone useful.
> If I do not want to guess what to do? I find SourceSet in the API, this has
> a method getClasses that supports my thinking (but how is it related
> main.classes property(?), I cant see formal correspondence). What is "from"
> and "include", how do I find their description/meaning? Looking at the
> Groovy Reference Card does not seem to help.
>
> Can you advice me where to start with my basic understanding after of what I
> can fully enjoy gradle's wonders?
First play with a trivial standard Maven structured project.
Then play with the structure and make the build work.
Then put it back as standard is good :-)
Then try various experiments leading towards the final project.
>
> Your help much appreciated!
Hopefully the above helps start the process of helping.
--
Russel.
=============================================================================
Dr Russel Winder Partner
xmpp: [email protected]
Concertant LLP t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road, f: +44 8700 516 084 voip: sip:[email protected]
London SW11 1EN, UK m: +44 7770 465 077 skype: russel_winder
signature.asc
Description: This is a digitally signed message part
