Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

issue #1 - set jruby.gem.home if GEM_HOME is not set

  • Loading branch information...
commit 473fbc88177c37d97ac9bc114787eb1220bf6286 1 parent 1346d49
@colinsurprenant authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 Rakefile
View
4 Rakefile
@@ -26,7 +26,9 @@ DST_EXAMPLES = "#{CWD}/examples"
task :default => [:clean, :build]
task :launch, :class_file do |t, args|
- system("java -cp \"#{TARGET_CLASSES_DIR}:#{TARGET_DEPENDENCY_DIR}/*\" redstorm.TopologyLauncher #{args[:class_file]}")
+ gem_home = ENV["GEM_HOME"].to_s.empty? ? " -Djruby.gem.home=`gem env home`" : ""
+ puts("launching java -cp \"#{TARGET_CLASSES_DIR}:#{TARGET_DEPENDENCY_DIR}/*\"#{gem_home} redstorm.TopologyLauncher #{args[:class_file]}")
+ system("java -cp \"#{TARGET_CLASSES_DIR}:#{TARGET_DEPENDENCY_DIR}/*\"#{gem_home} redstorm.TopologyLauncher #{args[:class_file]}")
end
task :clean do
Please sign in to comment.
Something went wrong with that request. Please try again.