Skip to content

Commit

Permalink
Clean up some bits after confirming that system search path works cro…
Browse files Browse the repository at this point in the history
…ss-platform
  • Loading branch information
ysb33r committed Dec 21, 2014
1 parent 22fed42 commit c5f8ee3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/main/groovy/com/github/jrubygradle/JRubyExec.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@ class JRubyExec extends JavaExec {

Map getPreparedEnvironment(Map env) {
JRubyExecUtils.preparedEnvironment(env,inheritRubyEnv) + [
//(JRubyExecUtils.pathVar()) : getComputedPATH(System.env."${JRubyExecUtils.pathVar()}"),
'PATH' : getComputedPATH(System.env."${JRubyExecUtils.pathVar()}"),
'GEM_HOME' : getGemWorkDir().absolutePath,
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class JRubyExecDelegate {
}

setEnvironment JRubyExecUtils.preparedEnvironment(getEnvironment(),proxy.inheritRubyEnv)
environment pathVar , JRubyExecUtils.prepareWorkingPath(gemDir,System.env."${pathVar}")
environment 'PATH' : JRubyExecUtils.prepareWorkingPath(gemDir,System.env."${pathVar}")
environment 'GEM_HOME' : gemDir.absolutePath
}
}
Expand Down

0 comments on commit c5f8ee3

Please sign in to comment.