From fad44356e621c3f5d5a3b9b8b1b60a22f4eec7c3 Mon Sep 17 00:00:00 2001 From: Lucki Date: Sat, 29 Aug 2015 13:05:24 +0200 Subject: [PATCH] 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`. --- build.gradle | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 33328c42..1557c417 100644 --- a/build.gradle +++ b/build.gradle @@ -13,6 +13,9 @@ mainClassName = 'itdelatrisu.opsu.Opsu' buildDir = new File(rootProject.projectDir, "build/") def useXDG = 'false' +if(hasProperty('XDG')) { + useXDG = XDG +} sourceCompatibility = 1.7 targetCompatibility = 1.7 @@ -103,4 +106,4 @@ jar { run { dependsOn 'unpackNatives' -} \ No newline at end of file +}