Title: [768] trunk/rails-integration/plugins/goldspike-snapshot/lib/war_config.rb: Add the possibility of having a local jruby-complete used instead
Revision
768
Author
olabini
Date
2007-10-16 08:05:43 -0400 (Tue, 16 Oct 2007)

Log Message

Add the possibility of having a local jruby-complete used instead

Modified Paths


Diff

Modified: trunk/rails-integration/plugins/goldspike-snapshot/lib/war_config.rb (767 => 768)


--- trunk/rails-integration/plugins/goldspike-snapshot/lib/war_config.rb	2007-10-16 11:34:34 UTC (rev 767)
+++ trunk/rails-integration/plugins/goldspike-snapshot/lib/war_config.rb	2007-10-16 12:05:43 UTC (rev 768)
@@ -99,7 +99,6 @@
 
       # default java libraries
       @java_libraries = {}
-      add_library('jruby-complete', :version => '1.0.1', :group => 'org.jruby')
       add_library('goldspike', :version => '1.3', :group => 'org.jruby.extras')
       add_library('activation', :version => '1.1', :group => 'javax.activation')
       add_library('commons-pool', :version => '1.3', :group => 'commons-pool')
@@ -131,6 +130,10 @@
       # load user configuration
       WLog.debug("Loading user configuration ...")
       load_user_configuration
+
+      @add_jruby_complete = true
+      
+      add_library('jruby-complete', :version => '1.0.1', :group => 'org.jruby') if @add_jruby_complete
     end # initialize
     
     def war_file(value = @war_file)
@@ -183,6 +186,13 @@
       add_library(name, :group => group, :version => version)
     end
 
+    def local_jruby(local=true)
+      if local
+        add_library("jruby-complete", :version => '1.1-snapshot')
+        @add_jruby_complete = false
+      end
+    end
+    
     def add_library(*args)
       lib = create_library(*args)
       @java_libraries[lib.name] = lib
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel

Reply via email to