Skip to content

Instantly share code, notes, and snippets.

@grv87
Created October 4, 2017 21:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grv87/88732e57df717f2cb3a3988346a2682c to your computer and use it in GitHub Desktop.
Save grv87/88732e57df717f2cb3a3988346a2682c to your computer and use it in GitHub Desktop.
Gradle cross-platform-exec plugin under Windows
plugins {
id 'com.github.jlouns.cpe' version '0.5.0'
}
task('test.cpe', type: CrossPlatformExec) {
commandLine(['bundle', '--version'])
}
task('test.cpe.PATHEXT', type: CrossPlatformExec) {
environment << ['PATHEXT': '.exe']
commandLine(['bundle', '--version'])
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment