File tree Expand file tree Collapse file tree
src/main/groovy/com/github/jrubygradle Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ apply from: 'gradle/integration-tests.gradle'
1414
1515
1616group = ' com.github.jruby-gradle'
17- version = ' 0.1.6 '
17+ version = ' 0.1.7 '
1818archivesBaseName = ' jruby-gradle-plugin'
1919
2020if (System . env. RELEASE != ' 1' ) {
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ class JRubyExec extends JavaExec {
6363 * @since 0.1.6
6464 */
6565 @OutputDirectory
66- File gemWorkDir
66+ File gemWorkDir = null
6767
6868 JRubyExec () {
6969 super ()
@@ -149,7 +149,7 @@ class JRubyExec extends JavaExec {
149149 *
150150 */
151151 String getComputedPATH (String originalPath ) {
152- File path = new File (tmpGemDir(), ' bin' )
152+ File path = new File (gemWorkDir ?: tmpGemDir(), ' bin' )
153153 return path. absolutePath + File . pathSeparatorChar + originalPath
154154 }
155155
@@ -183,7 +183,7 @@ class JRubyExec extends JavaExec {
183183 gemWorkDir = tmpGemDir()
184184 }
185185 gemWorkDir. mkdirs()
186- environment ' GEM_HOME' : gemWorkDir,
186+ environment ' GEM_HOME' : gemWorkDir. absolutePath ,
187187 ' PATH' : getComputedPATH(System . env. PATH )
188188
189189 if (configuration != null ) {
You can’t perform that action at this time.
0 commit comments