didge | 5 Sep 05:26
Favicon

[groovy-user] [ANN] MetaBuilder 1.1.0 released

The latest 1.1.0 release of MetaBuilder is now available on sourceforge.
Info and download instructions can be found here:
http://groovytools.sourceforge.net/builder

Many of the following new features were inspired by the feedback I've
received so far:

* Added support for min and max properties on collections and properites.
If the size of a collection or property falls out of the bounds of its min
and/or max vales, an exception is thrown.

* You can now specify an Pattern as the check for a property, in addition to
a Closure.

* Added MetaConfigBuilder, which mimics ConfigSlurper and generates
ConfigObjects.

* Added support for ConfigSlurper syntax.  You can now use syntax like:
invoice {
	id = '123'
	date = new Date()
}
You can mix with the old attribute syntax as you like, too:
invoice(id: '123) {
	date = new Date()
}

* You can now specify the def property as a Closure which is then called
everytime a default value is needed.

(Continue reading)

Russel Winder | 5 Sep 08:22

Re: [groovy-user] [ANN] MetaBuilder 1.1.0 released

On Thu, 2008-09-04 at 20:30 -0700, didge wrote:
> The latest 1.1.0 release of MetaBuilder is now available on sourceforge.
> Info and download instructions can be found here:
> http://groovytools.sourceforge.net/builder

Should this be an item in Groovy Contrib at Codehaus rather than a
separate project on Sourceforge ?

--

-- 
Russel.
====================================================
Dr Russel Winder                 Partner

Concertant LLP                   t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,              f: +44 8700 516 084
London SW11 1EN, UK.             m: +44 7770 465 077
Guillaume Laforge | 5 Sep 09:45
Gravatar

Re: [groovy-user] [ANN] MetaBuilder 1.1.0 released

On Fri, Sep 5, 2008 at 8:22 AM, Russel Winder
<russel.winder@...> wrote:
> On Thu, 2008-09-04 at 20:30 -0700, didge wrote:
>> The latest 1.1.0 release of MetaBuilder is now available on sourceforge.
>> Info and download instructions can be found here:
>> http://groovytools.sourceforge.net/builder
>
> Should this be an item in Groovy Contrib at Codehaus rather than a
> separate project on Sourceforge ?

Or as suggested in a past thread, even included in Groovy-core, at some point.

--

-- 
Guillaume Laforge
Groovy Project Manager
G2One, Inc. Vice-President Technology
http://www.g2one.com

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

    http://xircles.codehaus.org/manage_email

Russel Winder | 5 Sep 10:08

Re: [groovy-user] [ANN] MetaBuilder 1.1.0 released

On Fri, 2008-09-05 at 09:45 +0200, Guillaume Laforge wrote:
> On Fri, Sep 5, 2008 at 8:22 AM, Russel Winder
> <russel.winder@...> wrote:
> > On Thu, 2008-09-04 at 20:30 -0700, didge wrote:
> >> The latest 1.1.0 release of MetaBuilder is now available on sourceforge.
> >> Info and download instructions can be found here:
> >> http://groovytools.sourceforge.net/builder
> >
> > Should this be an item in Groovy Contrib at Codehaus rather than a
> > separate project on Sourceforge ?
> 
> Or as suggested in a past thread, even included in Groovy-core, at some point.

That works for me as well :-)

I wonder if we should investigate some way of making the "Groovy
Contrib" idea easier to work with -- Subversion is of course the problem
here :-)

Launchpad has this idea that projects (with Bazaar branches) can belong
to a super-project.  So this means projects can be born and, if
appropriate, die just like on Sourceforge, Rubyforge, GitHub, etc.
without the need for users to be specially registered as able to commit
to something like the GroovyContrib Subversion repository -- Subversion
really is the wrong tool for this sort of loosely coupled concept.

I am not sure Codehaus can support this sort of idea, at least not yet.
Perhaps though we should be more proactive in trying to find a way for
anyone to start a project that is associated with Groovy that then has a
sensible and easily migration path through various stages of acceptance
(Continue reading)

Andres Almiray | 5 Sep 19:36
Favicon
Gravatar

Re: [groovy-user] [ANN] MetaBuilder 1.1.0 released


+1 for example GraphicsBuilder and JideBuilder may move into the griffon
area, which lives in the core repo.

Russel Winder-4 wrote:
> 
> On Fri, 2008-09-05 at 09:45 +0200, Guillaume Laforge wrote:
>> On Fri, Sep 5, 2008 at 8:22 AM, Russel Winder
>> <russel.winder@...> wrote:
>> > On Thu, 2008-09-04 at 20:30 -0700, didge wrote:
>> >> The latest 1.1.0 release of MetaBuilder is now available on
>> sourceforge.
>> >> Info and download instructions can be found here:
>> >> http://groovytools.sourceforge.net/builder
>> >
>> > Should this be an item in Groovy Contrib at Codehaus rather than a
>> > separate project on Sourceforge ?
>> 
>> Or as suggested in a past thread, even included in Groovy-core, at some
>> point.
> 
> That works for me as well :-)
> 
> I wonder if we should investigate some way of making the "Groovy
> Contrib" idea easier to work with -- Subversion is of course the problem
> here :-)
> 
> Launchpad has this idea that projects (with Bazaar branches) can belong
> to a super-project.  So this means projects can be born and, if
> appropriate, die just like on Sourceforge, Rubyforge, GitHub, etc.
(Continue reading)

Mike Dillon | 5 Sep 17:14

Re: [groovy-user] [ANN] MetaBuilder 1.1.0 released

begin didge quotation:
> * You can now specify an Pattern as the check for a property, in addition to
> a Closure.

How about making it support any check object by using isCase()?

-md

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

    http://xircles.codehaus.org/manage_email

didge | 5 Sep 19:54
Favicon

RE: [groovy-user] [ANN] MetaBuilder 1.1.0 released

Mike,

That's a really good idea, thanks!  I just checked a change into the trunk
that delegates the check to ScriptByteCodeAdapter.isCase().

Now MetaBuilder's check supports Closures, Collections, Classes, Numbers,
Strings, Ranges, and Patterns just like Groovy switch case statements.

didge

> -----Original Message-----
> From: Mike Dillon [mailto:mike@...]
> Sent: Friday, September 05, 2008 8:15 AM
> To: user@...
> Subject: Re: [groovy-user] [ANN] MetaBuilder 1.1.0 released
> 
> begin didge quotation:
> > * You can now specify an Pattern as the check for a property, in
> addition to
> > a Closure.
> 
> How about making it support any check object by using isCase()?
> 
> -md
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 
(Continue reading)

Marcel Overdijk | 21 Oct 22:59

Re: [groovy-user] [ANN] MetaBuilder 1.1.0 released


What a great idea. I could really use this.

To bad it only works with JDK 1.6 as it uses the JDK 1.6 only push and pop
methods from LinkedList.

Wouldn't it be a good idea to remove the 1.6 dependency? I guess there are
more uses which cannot deploy to JDK 1.6 for some reasons.

Cheers,
Marcel

didge wrote:
> 
> The latest 1.1.0 release of MetaBuilder is now available on sourceforge.
> Info and download instructions can be found here:
> http://groovytools.sourceforge.net/builder
> 
> Many of the following new features were inspired by the feedback I've
> received so far:
> 
> * Added support for min and max properties on collections and properites.
> If the size of a collection or property falls out of the bounds of its min
> and/or max vales, an exception is thrown.
> 
> * You can now specify an Pattern as the check for a property, in addition
> to
> a Closure.
> 
> * Added MetaConfigBuilder, which mimics ConfigSlurper and generates
(Continue reading)


Gmane