diff --git a/src/main/java/hudson/plugins/rake/Rake.java b/src/main/java/hudson/plugins/rake/Rake.java index 7f51fe5..2bfbfc0 100644 --- a/src/main/java/hudson/plugins/rake/Rake.java +++ b/src/main/java/hudson/plugins/rake/Rake.java @@ -120,15 +120,12 @@ public boolean perform(AbstractBuild build, Launcher launcher, BuildListene try { EnvVars env = build.getEnvironment(listener); if (rake != null) { - System.out.println("Rake GEM HOME: "+ rake.getGemHome()); if (rake.getGemHome() != null) { env.put("GEM_HOME", rake.getGemHome()); } - System.out.println("Rake GEM PATH: "+ rake.getGemPath()); if (rake.getGemPath() != null) { env.put("GEM_PATH", rake.getGemPath()); } - System.err.println("Rake Bin PATH: "+ rake.getBinPath()); if (rake.getBinPath() != null) { StringBuilder builder = new StringBuilder(); String path = env.get("PATH"); diff --git a/src/main/java/hudson/plugins/rake/RvmUtil.java b/src/main/java/hudson/plugins/rake/RvmUtil.java index 9a77db1..5a9ec01 100644 --- a/src/main/java/hudson/plugins/rake/RvmUtil.java +++ b/src/main/java/hudson/plugins/rake/RvmUtil.java @@ -79,14 +79,7 @@ public static RubyInstallation[] getRvmRubies(Rvm rvm) { // Add GEM bin directory to path newpath = newpath.concat(File.pathSeparator).concat(new File(ruby.getGemHome(), "bin").getCanonicalPath()); - // Create or append the calculated path for this Ruby install - path = ruby.getBinPath(); - if (path == null || path.length() == 0) { - path = newpath; - } else { - path = path.concat(File.pathSeparator).concat(newpath); - } - ruby.setBinPath(path); + ruby.setBinPath(newpath); rubies.add(ruby); }