This patch allows for more extensive configuration of War::Configuration/Runner/Creator. We needed to tweak quite a lot of the settings so this patch introduces constants: WAR_CONFIGURATION, WAR_RUNNER and WAR_CREATOR. If you in your application specific rake files (e.g. lib/tasks/application.rake) define a 'war:init' target it can access and modify the above objects

Example:

task 'war:init' do
WAR_CONFIGURATION.add_jetty_library(java_library('mysql-connector- java', '5.0.5'))
  WAR_CONFIGURATION.remove_gem('ActiveRecord-JDBC')

  WAR_RUNNER.jetty_port = 8081
  WAR_RUNNER.java_opts = "-Xmx512m"
end

This completely removes the need for war.rb but we should probably keep it around for simpler tweaking. In general war.rb is not flexible/powerful enough for extensive tweaking (even if the Configuration/Runner/Creator objects themselves are).

This patch is diffed from plugins/war-snapshot.

Attachment: allow_customization_of_configuration.patch
Description: Binary data



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

Reply via email to