|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
[Suggestion] Artifact templatesI'm currently a little bit unhappy with the code generation support for example grails create-domain-class.
For a simple project the current code generation is sufficent, but for more real world projects which will be organized in plugins, the current code generation is not nice. I need copyright, User name a.s.o. on level grails project/plugin. Some of the projects will be open source, others closed source or different customers. So currently there is a lot of DRY-violation. br> My suggestions:
This kind of template managment are convenient using a version control system (VCS), 'cause the .options files and the templates could be stored within the VCS. What do you think about it? It's worth the development or are there a different solution already available. Did I miss something important (an unexpected dependency). I started changing _GrailsCreateArtifact.groovy and grailsStart script. Regards Marko |
|
|
Re: [Suggestion] Artifact templatesAlthough I agree with you that the basic template is not hugely useful beyond a demo, I think that is intentional.
Simply typing grails install-templates and then customizing them (as per your rules below) would seem to suffice. I do that on all non-trivial Grails projects I implement. Making the current template simpler I would agree with, making it more complex I would shy away from. Richard On Fri, Jul 3, 2009 at 4:22 AM, mumek2008 <marko.umek@...> wrote: I'm currently a little bit unhappy with the code generation support for example grails create-domain-class. -- --- Richard Vowles, Talk to me about development in Grails, Groovy, Java and for the Blackberry ph: +64275467747, linkedin, skype:rvowles get 2Gb shared disk space in the cloud - Dropbox, its incredibly useful! - http://tinyurl.com/cmcceh podcast: http://www.illegalargument.com |
|
|
Re: [Suggestion] Artifact templatesHi,
In our company we did that (changing the templetes) so that we generate artifacts for Meteora (http://meteora.astrata.com.mx/) and Calendula widgets (http://code.google.com/p/calendula-widgets/). Now when we type the command "grails generate-all domain-class" we get a full ajax user interface using those widgets. Saludos, Pablo.- On Thu, Jul 2, 2009 at 5:47 PM, Richard Vowles<richard@...> wrote: > Although I agree with you that the basic template is not hugely useful > beyond a demo, I think that is intentional. > > Simply typing grails install-templates and then customizing them (as per > your rules below) would seem to suffice. I do that on all non-trivial Grails > projects I implement. > > Making the current template simpler I would agree with, making it more > complex I would shy away from. > > Richard > > On Fri, Jul 3, 2009 at 4:22 AM, mumek2008 <marko.umek@...> wrote: >> >> I'm currently a little bit unhappy with the code generation support for >> example grails create-domain-class. >> For a simple project the current code generation is sufficent, but for >> more real world projects which will be organized in plugins, the current >> code generation is not nice. >> >> I need copyright, User name a.s.o. on level grails project/plugin. Some of >> the projects will be open source, others closed source or different >> customers. So currently there is a lot of DRY-violation. >> > > -- > --- > Richard Vowles, > Talk to me about development in Grails, Groovy, Java and for the Blackberry > ph: +64275467747, linkedin, skype:rvowles > get 2Gb shared disk space in the cloud - Dropbox, its incredibly useful! - > http://tinyurl.com/cmcceh > podcast: http://www.illegalargument.com > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
| Free embeddable forum powered by Nabble | Forum Help |