File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/main/groovy/com/github/jrubygradle Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ apply from: 'gradle/integration-tests.gradle'
14
14
15
15
16
16
group = ' com.github.jruby-gradle'
17
- version = ' 0.1.6 '
17
+ version = ' 0.1.7 '
18
18
archivesBaseName = ' jruby-gradle-plugin'
19
19
20
20
if (System . env. RELEASE != ' 1' ) {
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ class JRubyExec extends JavaExec {
63
63
* @since 0.1.6
64
64
*/
65
65
@OutputDirectory
66
- File gemWorkDir
66
+ File gemWorkDir = null
67
67
68
68
JRubyExec () {
69
69
super ()
@@ -149,7 +149,7 @@ class JRubyExec extends JavaExec {
149
149
*
150
150
*/
151
151
String getComputedPATH (String originalPath ) {
152
- File path = new File (tmpGemDir(), ' bin' )
152
+ File path = new File (gemWorkDir ?: tmpGemDir(), ' bin' )
153
153
return path. absolutePath + File . pathSeparatorChar + originalPath
154
154
}
155
155
@@ -183,7 +183,7 @@ class JRubyExec extends JavaExec {
183
183
gemWorkDir = tmpGemDir()
184
184
}
185
185
gemWorkDir. mkdirs()
186
- environment ' GEM_HOME' : gemWorkDir,
186
+ environment ' GEM_HOME' : gemWorkDir. absolutePath ,
187
187
' PATH' : getComputedPATH(System . env. PATH )
188
188
189
189
if (configuration != null ) {
You can’t perform that action at this time.
0 commit comments