incubator-alois-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fla...@apache.org
Subject svn commit: r1033447 - /incubator/alois/trunk/rails/script/compile_java
Date Wed, 10 Nov 2010 13:00:17 GMT
Author: flavio
Date: Wed Nov 10 13:00:17 2010
New Revision: 1033447

URL: http://svn.apache.org/viewvc?rev=1033447&view=rev
Log:
Remove gem_path if it dose not exit in compile_java

Modified:
    incubator/alois/trunk/rails/script/compile_java

Modified: incubator/alois/trunk/rails/script/compile_java
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/rails/script/compile_java?rev=1033447&r1=1033446&r2=1033447&view=diff
==============================================================================
--- incubator/alois/trunk/rails/script/compile_java (original)
+++ incubator/alois/trunk/rails/script/compile_java Wed Nov 10 13:00:17 2010
@@ -1,4 +1,8 @@
 #!/usr/bin/ruby
+require "pathname"
+ENV["GEM_HOME"] = nil if ENV["GEM_HOME"] and !Pathname.new(ENV["GEM_HOME"]).exist?
+ENV["GEM_PATH"] = nil if ENV["GEM_PATH"] and !Pathname.new(ENV["GEM_PATH"]).exist?
+
 require 'rubygems'
 require 'libisi'
 init_libisi



Mime
View raw message