I am wondering what would be the best way to change the project
generator to a maven-style directory-structure?
Would other generators, like class-generators, be able to work with
different directory-structures?
Maybe trial out building a custom generator (I did a post on this http://www.newtriks.com/?p=1084), hopefully the class generators would still be cool?
Cheers,
Simon
On 6 May 2011 23:00, Devboy <dominic.grae...@gmail.com> wrote:
> I am wondering what would be the best way to change the project > generator to a maven-style directory-structure? > Would other generators, like class-generators, be able to work with > different directory-structures?
> Cheers, > Dominic
> -- > You received this message because you are subscribed to the Google Groups > "ProjectSprouts" group. > To post to this group, send email to projectsprouts@googlegroups.com > To unsubscribe from this group, send email to > projectsprouts-unsubscribe@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/projectsprouts?hl=en
On Saturday, May 7, 2011 at 12:54 AM, Simon Bailey wrote: > Hi Dominic,
> Maybe trial out building a custom generator (I did a post on this http://www.newtriks.com/?p=1084), hopefully the class generators would still be cool?
> Cheers,
> Simon
> On 6 May 2011 23:00, Devboy <dominic.grae...@gmail.com> wrote: > > Hi guys,
> > I am wondering what would be the best way to change the project > > generator to a maven-style directory-structure? > > Would other generators, like class-generators, be able to work with > > different directory-structures?
> > Cheers, > > Dominic
> > -- > > You received this message because you are subscribed to the Google Groups "ProjectSprouts" group. > > To post to this group, send email to projectsprouts@googlegroups.com > > To unsubscribe from this group, send email to projectsprouts-unsubscribe@googlegroups.com > > For more options, visit this group at http://groups.google.com/group/projectsprouts?hl=en
> -- > You received this message because you are subscribed to the Google Groups "ProjectSprouts" group. > To post to this group, send email to projectsprouts@googlegroups.com > To unsubscribe from this group, send email to projectsprouts-unsubscribe@googlegroups.com > For more options, visit this group at http://groups.google.com/group/projectsprouts?hl=en
There isn't a great solution to this problem in Sprouts yet. As you found, you have 2 options today.
1) Create a custom project generator, and then custom class, test and suite generators. 2) Pass those same arguments every time you call a generator.
Some additional options that I've considered (and various combinations and permutations) are:
1) Serialize any parameters that are used on a project generator and use those values as the defaults for any subsequent generator runs within the project. This seemed reasonably simple to implement and understand, but suffers from some potentially surprising behavior as you move from one project to another. Then it gets into where to put the serialized generator data...
2) Provide an option to 'update defaults' on any generator and share defaults per-project and/or per-system, similarly to the templates themselves.
It looks like your layout files provide a DSL for persisting those template values, maybe there's some way to combine your approach with regular command line usage?
Ideas or thoughts welcomed -
Thanks!
Luke
On Sat, May 7, 2011 at 1:53 AM, Dominic Graefen <dominic.grae...@gmail.com>wrote:
> I came across your post and was not sure if thats what I was looking for.
> It looks like the project-generator is baked into the sprout-as3 command. > So i would need to create a new command.
> I also saw that options are available, like --src & --test to specify the > paths, > but I would have to append them to every generator i want to use.
> On Saturday, May 7, 2011 at 12:54 AM, Simon Bailey wrote:
> Hi Dominic,
> Maybe trial out building a custom generator (I did a post on this > http://www.newtriks.com/?p=1084), hopefully the class generators would > still be cool?
> Cheers,
> Simon
> On 6 May 2011 23:00, Devboy <dominic.grae...@gmail.com> wrote:
> Hi guys,
> I am wondering what would be the best way to change the project > generator to a maven-style directory-structure? > Would other generators, like class-generators, be able to work with > different directory-structures?
> Cheers, > Dominic
> -- > You received this message because you are subscribed to the Google Groups > "ProjectSprouts" group. > To post to this group, send email to projectsprouts@googlegroups.com > To unsubscribe from this group, send email to > projectsprouts-unsubscribe@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/projectsprouts?hl=en
> -- > You received this message because you are subscribed to the Google Groups > "ProjectSprouts" group. > To post to this group, send email to projectsprouts@googlegroups.com > To unsubscribe from this group, send email to > projectsprouts-unsubscribe@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/projectsprouts?hl=en
> -- > You received this message because you are subscribed to the Google Groups > "ProjectSprouts" group. > To post to this group, send email to projectsprouts@googlegroups.com > To unsubscribe from this group, send email to > projectsprouts-unsubscribe@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/projectsprouts?hl=en
I would love to have some system in sprouts to support different directory-layouts for projects. A possibility to achieve this would be through the use of configuration files in the project directory, maybe project/.sprouts/config.rb. If that file is not found we could fallback to ~/.sprouts/config.rb. Or load both and let the project-config overwrite the system-config.
I've attached the Layout class from buildr so you can have a look at it.
On Monday, May 9, 2011 at 8:45 AM, Luke Bayes wrote: > Hey Dominic,
> There isn't a great solution to this problem in Sprouts yet. As you found, you have 2 options today.
> 1) Create a custom project generator, and then custom class, test and suite generators. > 2) Pass those same arguments every time you call a generator.
> Some additional options that I've considered (and various combinations and permutations) are:
> 1) Serialize any parameters that are used on a project generator and use those values as the defaults for any subsequent generator runs within the project. This seemed reasonably simple to implement and understand, but suffers from some potentially surprising behavior as you move from one project to another. Then it gets into where to put the serialized generator data...
> 2) Provide an option to 'update defaults' on any generator and share defaults per-project and/or per-system, similarly to the templates themselves.
> It looks like your layout files provide a DSL for persisting those template values, maybe there's some way to combine your approach with regular command line usage?
> Ideas or thoughts welcomed -
> Thanks!
> Luke
> On Sat, May 7, 2011 at 1:53 AM, Dominic Graefen <dominic.grae...@gmail.com (mailto:dominic.grae...@gmail.com)> wrote: > > Hi Simon,
> > I came across your post and was not sure if thats what I was looking for.
> > It looks like the project-generator is baked into the sprout-as3 command. > > So i would need to create a new command.
> > I also saw that options are available, like --src & --test to specify the paths, > > but I would have to append them to every generator i want to use.
> > On Saturday, May 7, 2011 at 12:54 AM, Simon Bailey wrote:
> > > Hi Dominic,
> > > Maybe trial out building a custom generator (I did a post on this http://www.newtriks.com/?p=1084), hopefully the class generators would still be cool?
> > > Cheers,
> > > Simon
> > > On 6 May 2011 23:00, Devboy <dominic.grae...@gmail.com (mailto:dominic.grae...@gmail.com)> wrote: > > > > Hi guys,
> > > > I am wondering what would be the best way to change the project > > > > generator to a maven-style directory-structure? > > > > Would other generators, like class-generators, be able to work with > > > > different directory-structures?
> > > > Cheers, > > > > Dominic
> > > > -- > > > > You received this message because you are subscribed to the Google Groups "ProjectSprouts" group. > > > > To post to this group, send email to projectsprouts@googlegroups.com (mailto:projectsprouts@googlegroups.com) > > > > To unsubscribe from this group, send email to projectsprouts-unsubscribe@googlegroups.com (mailto:projectsprouts-unsubscribe@googlegroups.com) > > > > For more options, visit this group at http://groups.google.com/group/projectsprouts?hl=en
> > > -- > > > You received this message because you are subscribed to the Google Groups "ProjectSprouts" group. > > > To post to this group, send email to projectsprouts@googlegroups.com (mailto:projectsprouts@googlegroups.com) > > > To unsubscribe from this group, send email to projectsprouts-unsubscribe@googlegroups.com (mailto:projectsprouts-unsubscribe@googlegroups.com) > > > For more options, visit this group at http://groups.google.com/group/projectsprouts?hl=en
> > -- > > You received this message because you are subscribed to the Google Groups "ProjectSprouts" group. > > To post to this group, send email to projectsprouts@googlegroups.com (mailto:projectsprouts@googlegroups.com) > > To unsubscribe from this group, send email to projectsprouts-unsubscribe@googlegroups.com (mailto:projectsprouts-unsubscribe@googlegroups.com) > > For more options, visit this group at http://groups.google.com/group/projectsprouts?hl=en
> > For other info you can visit our project at: http://projectsprouts.org, or on Github at: http://github.com/lukebayes/project-sprouts > -- > You received this message because you are subscribed to the Google Groups "ProjectSprouts" group. > To post to this group, send email to projectsprouts@googlegroups.com (mailto:projectsprouts@googlegroups.com) > To unsubscribe from this group, send email to projectsprouts-unsubscribe@googlegroups.com (mailto:projectsprouts-unsubscribe@googlegroups.com) > For more options, visit this group at http://groups.google.com/group/projectsprouts?hl=en
The lateness is actually appreciated as now is a better time (for me) to work on this issue. :-)
I like the direction you're taking with project-specific settings falling back to user account settings.
As far as naming goes, I'd prefer to indicate that these settings are associated with 'generators' rather than just 'sprouts'.
Maybe it could be something like:
[PROJECT]/.sprouts/generator_config.rb
For user home settings, I found that it's helpful to store this kind of information behind a versioned folder so that new versions of Sprouts can break compatibility without behaving in unexpected ways. I try hard not to change second-tier revisions unless something significant changed.
So I'd rather see a home dir solution that looks more like:
[USER_HOME]/.sprouts/[SPROUT_VERSION].[SPROUT_REVISION]/generator_config.rb e.g. /Users/lbayes/.sprouts/1.1/generator_config.rb
As with Executable locations, we could also support environment vars - which I believe would supersede both of the previous options. Maybe somthing like:
SPROUT_GENERATOR_CONFIG=/path/to/your/config
This could be provided on the command line, exported from .bash_profile/.bashrc or set in the system registry if that's how you roll.
I'm open to other names too... Any ideas appreciated.
I considered:
* generators.rb: This seemed too general to me, I like your use of the 'config' term. * gen_config.rb: This seemed too terse
Other ideas?
Thanks,
Luke
On Wed, Jun 15, 2011 at 6:11 AM, Dominic Graefen <dominic.grae...@gmail.com>wrote:
> I would love to have some system in sprouts to support different > directory-layouts for projects. > A possibility to achieve this would be through the use of configuration > files in the project directory, > maybe project/.sprouts/config.rb. If that file is not found we could > fallback to ~/.sprouts/config.rb. > Or load both and let the project-config overwrite the system-config.
> I've attached the Layout class from buildr so you can have a look at it.
> -- > Dominic Graefen
> On Monday, May 9, 2011 at 8:45 AM, Luke Bayes wrote:
> Hey Dominic,
> There isn't a great solution to this problem in Sprouts yet. As you found, > you have 2 options today.
> 1) Create a custom project generator, and then custom class, test and > suite generators. > 2) Pass those same arguments every time you call a generator.
> Some additional options that I've considered (and various combinations and > permutations) are:
> 1) Serialize any parameters that are used on a project generator and use > those values as the defaults for any subsequent generator runs within the > project. This seemed reasonably simple to implement and understand, but > suffers from some potentially surprising behavior as you move from one > project to another. Then it gets into where to put the serialized generator > data...
> 2) Provide an option to 'update defaults' on any generator and share > defaults per-project and/or per-system, similarly to the templates > themselves.
> It looks like your layout files provide a DSL for persisting those template > values, maybe there's some way to combine your approach with regular command > line usage?
> Ideas or thoughts welcomed -
> Thanks!
> Luke
> On Sat, May 7, 2011 at 1:53 AM, Dominic Graefen <dominic.grae...@gmail.com > > wrote:
> Hi Simon,
> I came across your post and was not sure if thats what I was looking for.
> It looks like the project-generator is baked into the sprout-as3 command. > So i would need to create a new command.
> I also saw that options are available, like --src & --test to specify the > paths, > but I would have to append them to every generator i want to use.
> On Saturday, May 7, 2011 at 12:54 AM, Simon Bailey wrote:
> Hi Dominic,
> Maybe trial out building a custom generator (I did a post on this > http://www.newtriks.com/?p=1084), hopefully the class generators would > still be cool?
> Cheers,
> Simon
> On 6 May 2011 23:00, Devboy <dominic.grae...@gmail.com> wrote:
> Hi guys,
> I am wondering what would be the best way to change the project > generator to a maven-style directory-structure? > Would other generators, like class-generators, be able to work with > different directory-structures?
> Cheers, > Dominic
> -- > You received this message because you are subscribed to the Google Groups > "ProjectSprouts" group. > To post to this group, send email to projectsprouts@googlegroups.com > To unsubscribe from this group, send email to > projectsprouts-unsubscribe@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/projectsprouts?hl=en
> -- > You received this message because you are subscribed to the Google Groups > "ProjectSprouts" group. > To post to this group, send email to projectsprouts@googlegroups.com > To unsubscribe from this group, send email to > projectsprouts-unsubscribe@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/projectsprouts?hl=en
> -- > You received this message because you are subscribed to the Google Groups > "ProjectSprouts" group. > To post to this group, send email to projectsprouts@googlegroups.com > To unsubscribe from this group, send email to > projectsprouts-unsubscribe@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/projectsprouts?hl=en
> -- > You received this message because you are subscribed to the Google Groups > "ProjectSprouts" group. > To post to this group, send email to projectsprouts@googlegroups.com > To unsubscribe from this group, send email to > projectsprouts-unsubscribe@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/projectsprouts?hl=en
> -- > You received this message because you are subscribed to the Google Groups > "ProjectSprouts" group. > To post to this group, send email to projectsprouts@googlegroups.com > To unsubscribe from this group, send email to > projectsprouts-unsubscribe@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/projectsprouts?hl=en
my naming and path-directories were just quickly made up and can be changed at your will :) Versioning the directories is a good idea to keep older versions working.
I wouldn't put the configuration on the generators level, as directory layouts would also matter to the rake builds. When we got layouts like this we could also split up the generators for source files and Rakefiles/buildfiles, so they can be generated seperatedly, this would open the door to bring support for other build-systems like Ant, Maven or Buildr.
Personally I like having default locations/directories for application-configs because i don't need to set anything up. And keeping track of ENV vars is a pain in the ass :) but using it to overwrite the default config is a way for users to do something out-of-the-box.
If you want to team up on this I would love to help out.
On Wednesday, June 15, 2011 at 7:33 PM, Luke Bayes wrote: > Hey Dominic,
> Thanks for following up!
> The lateness is actually appreciated as now is a better time (for me) to work on this issue. :-)
> I like the direction you're taking with project-specific settings falling back to user account settings.
> As far as naming goes, I'd prefer to indicate that these settings are associated with 'generators' rather than just 'sprouts'.
> Maybe it could be something like:
> [PROJECT]/.sprouts/generator_config.rb
> For user home settings, I found that it's helpful to store this kind of information behind a versioned folder so that new versions of Sprouts can break compatibility without behaving in unexpected ways. I try hard not to change second-tier revisions unless something significant changed.
> So I'd rather see a home dir solution that looks more like:
> [USER_HOME]/.sprouts/[SPROUT_VERSION].[SPROUT_REVISION]/generator_config.rb > e.g. /Users/lbayes/.sprouts/1.1/generator_config.rb
> As with Executable locations, we could also support environment vars - which I believe would supersede both of the previous options. Maybe somthing like:
> SPROUT_GENERATOR_CONFIG=/path/to/your/config
> This could be provided on the command line, exported from .bash_profile/.bashrc or set in the system registry if that's how you roll.
> I'm open to other names too... Any ideas appreciated.
> I considered:
> * generators.rb: This seemed too general to me, I like your use of the 'config' term. > * gen_config.rb: This seemed too terse
> Other ideas?
> Thanks,
> Luke
> On Wed, Jun 15, 2011 at 6:11 AM, Dominic Graefen <dominic.grae...@gmail.com (mailto:dominic.grae...@gmail.com)> wrote: > > Hi Luke,
> > sorry that I am coming back to this so late.
> > I would love to have some system in sprouts to support different directory-layouts for projects. > > A possibility to achieve this would be through the use of configuration files in the project directory, > > maybe project/.sprouts/config.rb. If that file is not found we could fallback to ~/.sprouts/config.rb. > > Or load both and let the project-config overwrite the system-config.
> > I've attached the Layout class from buildr so you can have a look at it.
> > -- > > Dominic Graefen
> > On Monday, May 9, 2011 at 8:45 AM, Luke Bayes wrote:
> > > Hey Dominic,
> > > There isn't a great solution to this problem in Sprouts yet. As you found, you have 2 options today.
> > > 1) Create a custom project generator, and then custom class, test and suite generators. > > > 2) Pass those same arguments every time you call a generator.
> > > Some additional options that I've considered (and various combinations and permutations) are:
> > > 1) Serialize any parameters that are used on a project generator and use those values as the defaults for any subsequent generator runs within the project. This seemed reasonably simple to implement and understand, but suffers from some potentially surprising behavior as you move from one project to another. Then it gets into where to put the serialized generator data...
> > > 2) Provide an option to 'update defaults' on any generator and share defaults per-project and/or per-system, similarly to the templates themselves.
> > > It looks like your layout files provide a DSL for persisting those template values, maybe there's some way to combine your approach with regular command line usage?
> > > Ideas or thoughts welcomed -
> > > Thanks!
> > > Luke
> > > On Sat, May 7, 2011 at 1:53 AM, Dominic Graefen <dominic.grae...@gmail.com (mailto:dominic.grae...@gmail.com)> wrote: > > > > Hi Simon,
> > > > I came across your post and was not sure if thats what I was looking for.
> > > > It looks like the project-generator is baked into the sprout-as3 command. > > > > So i would need to create a new command.
> > > > I also saw that options are available, like --src & --test to specify the paths, > > > > but I would have to append them to every generator i want to use.
> > > > On Saturday, May 7, 2011 at 12:54 AM, Simon Bailey wrote:
> > > > > Hi Dominic,
> > > > > Maybe trial out building a custom generator (I did a post on this http://www.newtriks.com/?p=1084), hopefully the class generators would still be cool?
> > > > > Cheers,
> > > > > Simon
> > > > > On 6 May 2011 23:00, Devboy <dominic.grae...@gmail.com (mailto:dominic.grae...@gmail.com)> wrote: > > > > > > Hi guys,
> > > > > > I am wondering what would be the best way to change the project > > > > > > generator to a maven-style directory-structure? > > > > > > Would other generators, like class-generators, be able to work with > > > > > > different directory-structures?
> > > > > > Cheers, > > > > > > Dominic
> > > > > > -- > > > > > > You received this message because you are subscribed to the Google Groups "ProjectSprouts" group. > > > > > > To post to this group, send email to projectsprouts@googlegroups.com (mailto:projectsprouts@googlegroups.com) > > > > > > To unsubscribe from this group, send email to projectsprouts-unsubscribe@googlegroups.com (mailto:projectsprouts-unsubscribe@googlegroups.com) > > > > > > For more options, visit this group at http://groups.google.com/group/projectsprouts?hl=en
> > > > > -- > > > > > You received this message because you are subscribed to the Google Groups "ProjectSprouts" group. > > > > > To post to this group, send email to projectsprouts@googlegroups.com (mailto:projectsprouts@googlegroups.com) > > > > > To unsubscribe from this group, send email to projectsprouts-unsubscribe@googlegroups.com (mailto:projectsprouts-unsubscribe@googlegroups.com) > > > > > For more options, visit this group at http://groups.google.com/group/projectsprouts?hl=en
> > > > -- > > > > You received this message because you are subscribed to the Google Groups "ProjectSprouts" group. > > > > To post to this group, send email to projectsprouts@googlegroups.com (mailto:projectsprouts@googlegroups.com) > > > > To unsubscribe from this group, send email to projectsprouts-unsubscribe@googlegroups.com (mailto:projectsprouts-unsubscribe@googlegroups.com) > > > > For more options, visit this group at http://groups.google.com/group/projectsprouts?hl=en
> > > > For other info you can visit our project at: http://projectsprouts.org, or on Github at: http://github.com/lukebayes/project-sprouts > > > -- > > > You received this message because you are subscribed to the Google Groups "ProjectSprouts" group. > > > To post to this group, send email to projectsprouts@googlegroups.com (mailto:projectsprouts@googlegroups.com) > > > To unsubscribe from this group, send email to projectsprouts-unsubscribe@googlegroups.com (mailto:projectsprouts-unsubscribe@googlegroups.com) > > > For more options, visit this group at http://groups.google.com/group/projectsprouts?hl=en
> > -- > > You received this message because you are subscribed to the Google Groups "ProjectSprouts" group. > > To post to this group, send email to projectsprouts@googlegroups.com (mailto:projectsprouts@googlegroups.com) > > To unsubscribe from this group, send email to projectsprouts-unsubscribe@googlegroups.com (mailto:projectsprouts-unsubscribe@googlegroups.com) > > For more options, visit this group at http://groups.google.com/group/projectsprouts?hl=en
> > For other info you can visit our project at: http://projectsprouts.org, or on Github at: http://github.com/lukebayes/project-sprouts > -- > You received this message because you are subscribed to the Google Groups "ProjectSprouts" group. > To post to this group, send email to projectsprouts@googlegroups.com (mailto:projectsprouts@googlegroups.com) > To unsubscribe from this group, send email to projectsprouts-unsubscribe@googlegroups.com (mailto:projectsprouts-unsubscribe@googlegroups.com) > For more options,
This all sounds cool, if I can muck-in in any way even if its testing etc please holla as I would like to keep updated on progress of this and I think it would help further my understanding of sprouts plus ruby and rake?
On Wednesday, 15 June 2011 at 19:09, Dominic Graefen wrote: > Hey,
> my naming and path-directories were just quickly made up and can be changed at your will :) > Versioning the directories is a good idea to keep older versions working.
> I wouldn't put the configuration on the generators level, as directory layouts would also matter to the rake builds. > When we got layouts like this we could also split up the generators for source files and Rakefiles/buildfiles, so they can be generated seperatedly, > this would open the door to bring support for other build-systems like Ant, Maven or Buildr.
> Personally I like having default locations/directories for application-configs because i don't need to set anything up. > And keeping track of ENV vars is a pain in the ass :) but using it to overwrite the default config is a way for users to do something out-of-the-box.
> If you want to team up on this I would love to help out.
> Cheers,
> -- > Dominic Graefen
> On Wednesday, June 15, 2011 at 7:33 PM, Luke Bayes wrote:
> > Hey Dominic,
> > Thanks for following up!
> > The lateness is actually appreciated as now is a better time (for me) to work on this issue. :-)
> > I like the direction you're taking with project-specific settings falling back to user account settings.
> > As far as naming goes, I'd prefer to indicate that these settings are associated with 'generators' rather than just 'sprouts'.
> > Maybe it could be something like:
> > [PROJECT]/.sprouts/generator_config.rb
> > For user home settings, I found that it's helpful to store this kind of information behind a versioned folder so that new versions of Sprouts can break compatibility without behaving in unexpected ways. I try hard not to change second-tier revisions unless something significant changed.
> > So I'd rather see a home dir solution that looks more like:
> > [USER_HOME]/.sprouts/[SPROUT_VERSION].[SPROUT_REVISION]/generator_config.rb > > e.g. /Users/lbayes/.sprouts/1.1/generator_config.rb
> > As with Executable locations, we could also support environment vars - which I believe would supersede both of the previous options. Maybe somthing like:
> > SPROUT_GENERATOR_CONFIG=/path/to/your/config
> > This could be provided on the command line, exported from .bash_profile/.bashrc or set in the system registry if that's how you roll.
> > I'm open to other names too... Any ideas appreciated.
> > I considered:
> > * generators.rb: This seemed too general to me, I like your use of the 'config' term. > > * gen_config.rb: This seemed too terse
> > Other ideas?
> > Thanks,
> > Luke
> > On Wed, Jun 15, 2011 at 6:11 AM, Dominic Graefen <dominic.grae...@gmail.com (mailto:dominic.grae...@gmail.com)> wrote: > > > Hi Luke,
> > > sorry that I am coming back to this so late.
> > > I would love to have some system in sprouts to support different directory-layouts for projects. > > > A possibility to achieve this would be through the use of configuration files in the project directory, > > > maybe project/.sprouts/config.rb. If that file is not found we could fallback to ~/.sprouts/config.rb. > > > Or load both and let the project-config overwrite the system-config.
> > > I've attached the Layout class from buildr so you can have a look at it.
> > > -- > > > Dominic Graefen
> > > On Monday, May 9, 2011 at 8:45 AM, Luke Bayes wrote:
> > > > Hey Dominic,
> > > > There isn't a great solution to this problem in Sprouts yet. As you found, you have 2 options today.
> > > > 1) Create a custom project generator, and then custom class, test and suite generators. > > > > 2) Pass those same arguments every time you call a generator.
> > > > Some additional options that I've considered (and various combinations and permutations) are:
> > > > 1) Serialize any parameters that are used on a project generator and use those values as the defaults for any subsequent generator runs within the project. This seemed reasonably simple to implement and understand, but suffers from some potentially surprising behavior as you move from one project to another. Then it gets into where to put the serialized generator data...
> > > > 2) Provide an option to 'update defaults' on any generator and share defaults per-project and/or per-system, similarly to the templates themselves.
> > > > It looks like your layout files provide a DSL for persisting those template values, maybe there's some way to combine your approach with regular command line usage?
> > > > Ideas or thoughts welcomed -
> > > > Thanks!
> > > > Luke
> > > > On Sat, May 7, 2011 at 1:53 AM, Dominic Graefen <dominic.grae...@gmail.com (mailto:dominic.grae...@gmail.com)> wrote: > > > > > Hi Simon,
> > > > > I came across your post and was not sure if thats what I was looking for.
> > > > > It looks like the project-generator is baked into the sprout-as3 command. > > > > > So i would need to create a new command.
> > > > > I also saw that options are available, like --src & --test to specify the paths, > > > > > but I would have to append them to every generator i want to use.
> > > > > On Saturday, May 7, 2011 at 12:54 AM, Simon Bailey wrote:
> > > > > > Hi Dominic,
> > > > > > Maybe trial out building a custom generator (I did a post on this http://www.newtriks.com/?p=1084), hopefully the class generators would still be cool?
> > > > > > Cheers,
> > > > > > Simon
> > > > > > On 6 May 2011 23:00, Devboy <dominic.grae...@gmail.com (mailto:dominic.grae...@gmail.com)> wrote: > > > > > > > Hi guys,
> > > > > > > I am wondering what would be the best way to change the project > > > > > > > generator to a maven-style directory-structure? > > > > > > > Would other generators, like class-generators, be able to work with > > > > > > > different directory-structures?
> > > > > > > Cheers, > > > > > > > Dominic
> > > > > > > -- > > > > > > > You received this message because you are subscribed to the Google Groups "ProjectSprouts" group. > > > > > > > To post to this group, send email to projectsprouts@googlegroups.com (mailto:projectsprouts@googlegroups.com) > > > > > > > To unsubscribe from this group, send email to projectsprouts-unsubscribe@googlegroups.com (mailto:projectsprouts-unsubscribe@googlegroups.com) > > > > > > > For more options, visit this group at http://groups.google.com/group/projectsprouts?hl=en
> > > > > > -- > > > > > > You received this message because you are subscribed to the Google Groups "ProjectSprouts" group. > > > > > > To post to this group, send email to projectsprouts@googlegroups.com (mailto:projectsprouts@googlegroups.com) > > > > > > To unsubscribe from this group, send email to projectsprouts-unsubscribe@googlegroups.com (mailto:projectsprouts-unsubscribe@googlegroups.com) > > > > > > For more options, visit this group at http://groups.google.com/group/projectsprouts?hl=en
> > > > > -- > > > > > You received this message because you are subscribed to the Google Groups "ProjectSprouts" group. > > > > > To post to this group, send email to projectsprouts@googlegroups.com (mailto:projectsprouts@googlegroups.com) > > > > > To unsubscribe from this group, send email to projectsprouts-unsubscribe@googlegroups.com (mailto:projectsprouts-unsubscribe@googlegroups.com) > > > > > For more options, visit this group at http://groups.google.com/group/projectsprouts?hl=en
> > > > > For other info you can visit our project at: http://projectsprouts.org, or on Github at: http://github.com/lukebayes/project-sprouts > > > > -- > > > > You received this message because you are subscribed to the Google Groups "ProjectSprouts" group. > > > > To post to this group, send email to projectsprouts@googlegroups.com (mailto:projectsprouts@googlegroups.com) > > > > To unsubscribe from this group, send email to projectsprouts-unsubscribe@googlegroups.com (mailto:projectsprouts-unsubscribe@googlegroups.com) > > > > For more options, visit this group at http://groups.google.com/group/projectsprouts?hl=en
> > > -- > > > You received this message because you are subscribed to the Google Groups "ProjectSprouts" group. > > > To post to this group, send email to projectsprouts@googlegroups.com (mailto:projectsprouts@googlegroups.com) > > > To unsubscribe from this