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 {
117
117
/* * Return the computed `PATH` for the task
118
118
*
119
119
*/
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' )
125
122
return path. absolutePath + File . pathSeparatorChar + originalPath
126
123
}
127
124
@@ -154,7 +151,7 @@ class JRubyExec extends JavaExec {
154
151
File gemDir = tmpGemDir()
155
152
gemDir. mkdirs()
156
153
environment ' GEM_HOME' : gemDir,
157
- ' PATH' : getComputedPATH(configuration, System . env. PATH )
154
+ ' PATH' : getComputedPATH(System . env. PATH )
158
155
159
156
if (configuration != null ) {
160
157
GemUtils . extractGems(
Original file line number Diff line number Diff line change @@ -174,6 +174,6 @@ class JRubyExecSpec extends Specification {
174
174
}
175
175
176
176
then :
177
- execTask. getComputedPATH(' foo ' , System . env. PATH ). contains(' foo' )
177
+ execTask. getComputedPATH(System . env. PATH ). contains(' foo' )
178
178
}
179
179
}
You can’t perform that action at this time.
0 commit comments