Make the XDG-option available from command line
I've found no way to access it without this workaround: https://discuss.gradle.org/t/can-i-override-the-group-property-from-the-command-line/5294 It's now possible to build with `gradle jar -PXDG=true`.
This commit is contained in:
parent
c2839759b3
commit
fad44356e6
|
@ -13,6 +13,9 @@ mainClassName = 'itdelatrisu.opsu.Opsu'
|
||||||
buildDir = new File(rootProject.projectDir, "build/")
|
buildDir = new File(rootProject.projectDir, "build/")
|
||||||
|
|
||||||
def useXDG = 'false'
|
def useXDG = 'false'
|
||||||
|
if(hasProperty('XDG')) {
|
||||||
|
useXDG = XDG
|
||||||
|
}
|
||||||
|
|
||||||
sourceCompatibility = 1.7
|
sourceCompatibility = 1.7
|
||||||
targetCompatibility = 1.7
|
targetCompatibility = 1.7
|
||||||
|
@ -103,4 +106,4 @@ jar {
|
||||||
|
|
||||||
run {
|
run {
|
||||||
dependsOn 'unpackNatives'
|
dependsOn 'unpackNatives'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user