Hi Jon
some further discussion has taken place in another thread (that one for the
patch release you submitted )
I'd love to have your opinions on that one.
Cheers,
Fausto.
On 4/19/07, Jon Tirsen <[EMAIL PROTECTED]> wrote:
> On 19/04/2007, at 5:03 PM, Charles Oliver Nutter wrote:
>
> > Jon Tirsen wrote:
> >> Sure, my patch is only about fixing the fact that there are a lot
> >> more things you can do with the Configuration object than you can do
> >> with the "DSL". I definitely don't need "per-task" configurations.
> >>
> >> In general the war.rb "DSL" is a bit quirky. I think something along
> >> the lines of the standard config/environment.rb would be more
> >> familiar to Rails developers. That would have the added benefit that
> >> we wouldn't need to mirror the API of War::Configuration into a
> >> special War::Configuration DSL.
> >>
> >> Example:
> >>
> >> War::Configuration.setup do |config|
> >> config.add_jetty_library(config.java_library('jetty', '6.6.1'))
> >> # ... etc ...
> >> end
> >
> > What about YAML?
> >
> > - Charlie
>
> Once again I would compare to config/environment.rb. There's a good
> reason very little configuration files are YAML in Rails (only
> database.yml, and I would argue even that is a mistake). Having your
> configuration file in Ruby is very powerful as you can handle
> environment specific configurations (loading AR-JDBC if you're
> running JRuby etc), create functions and abstractions for repeated
> configuration options and so on. database.yml gets around this by
> actually being an erb file, so that you can still break out to do
> smarter stuff in Ruby.
>
> Cheers,
> Jon
>
>
>
>
> ----
> New from ThoughtWorks: Mingle, an Agile project management application.
> Mingle. Project Intelligence. Powerfully Simple.
> More at http://studios.thoughtworks.com
>
>
> _______________________________________________
> Jruby-extras-devel mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/jruby-extras-devel
>
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel