Skip to content

Commit

Permalink
When running under Windows, ensure that TMP & TEMP environmental vari…
Browse files Browse the repository at this point in the history
…ables are passed from to the GEM install.
  • Loading branch information
ysb33r committed Dec 20, 2014
1 parent 90eeed1 commit 445763c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/groovy/com/github/jrubygradle/GemUtils.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ class GemUtils {
project.logger.debug "Gem installation: Working around bug in jruby 1.7.14"
environment HOME : project.gradle.gradleUserHomeDir.absolutePath
}

// Workaround for FFI bug that is seen on some Windows environments
if(System.getProperty('os.name').toLowerCase().startsWith('windows')) {
environment 'TMP' : System.env.TMP, 'TEMP' : System.env.TEMP
}
}
}
}
Expand Down

0 comments on commit 445763c

Please sign in to comment.