File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
main/groovy/com/github/jrubygradle
test/groovy/com/github/jrubygradle Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -117,11 +117,8 @@ class JRubyExec extends JavaExec {
117117 /* * Return the computed `PATH` for the task
118118 *
119119 */
120- String getComputedPATH (String configuration , String originalPath ) {
121- File path = new File ([project. buildDir,
122- ' tmp' ,
123- configuration,
124- ' bin' ]. join(File . separator))
120+ String getComputedPATH (String originalPath ) {
121+ File path = new File (tmpGemDir(), ' bin' )
125122 return path. absolutePath + File . pathSeparatorChar + originalPath
126123 }
127124
@@ -154,7 +151,7 @@ class JRubyExec extends JavaExec {
154151 File gemDir = tmpGemDir()
155152 gemDir. mkdirs()
156153 environment ' GEM_HOME' : gemDir,
157- ' PATH' : getComputedPATH(configuration, System . env. PATH )
154+ ' PATH' : getComputedPATH(System . env. PATH )
158155
159156 if (configuration != null ) {
160157 GemUtils . extractGems(
Original file line number Diff line number Diff line change @@ -174,6 +174,6 @@ class JRubyExecSpec extends Specification {
174174 }
175175
176176 then :
177- execTask. getComputedPATH(' foo ' , System . env. PATH ). contains(' foo' )
177+ execTask. getComputedPATH(System . env. PATH ). contains(' foo' )
178178 }
179179}
You can’t perform that action at this time.
0 commit comments