From 9fc00fc3c383ec23842dc76869033da4af041fc2 Mon Sep 17 00:00:00 2001 From: Jeffrey Han Date: Sat, 29 Aug 2015 09:51:10 -0500 Subject: [PATCH] Follow-up to #128: add XDG info to readme, rename the Maven property. Signed-off-by: Jeffrey Han --- README.md | 9 +++++++-- build.gradle | 2 +- pom.xml | 4 ++-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 37983e58..cc1455a2 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,7 @@ The following files and folders will be created by opsu! as needed: * `ReplayImport/`: The replay import directory. The importer moves all .osr files within this directory to the replay directory and saves the scores in the scores database. Replays can be imported from osu! as well as opsu!. +* `Natives/`: The native libraries directory. ## Building opsu! is distributed as both a [Maven](https://maven.apache.org/) and @@ -72,14 +73,18 @@ Maven builds are built to the `target` directory. * To run the project, execute the Maven goal `compile`. * To create a single executable jar, execute the Maven goal `package -Djar`. This will compile a jar to `target/opsu-${version}.jar` with the libraries, - resources and natives packed inside the jar. + resources and natives packed inside the jar. Setting the "XDG" property + (`-DXDG=true`) will make the application use XDG folders under Unix-like + operating systems. ### Gradle Gradle builds are built to the `build` directory. * To run the project, execute the Gradle task `run`. * To create a single executable jar, execute the Gradle task `jar`. This will compile a jar to `build/libs/opsu-${version}.jar` with the libraries, - resources and natives packed inside the jar. + resources and natives packed inside the jar. Setting the "XDG" property + (`-PXDG=true`) will make the application use XDG folders under Unix-like + operating systems. ## Credits This software was created by Jeffrey Han diff --git a/build.gradle b/build.gradle index 1557c417..5bed43e0 100644 --- a/build.gradle +++ b/build.gradle @@ -13,7 +13,7 @@ mainClassName = 'itdelatrisu.opsu.Opsu' buildDir = new File(rootProject.projectDir, "build/") def useXDG = 'false' -if(hasProperty('XDG')) { +if (hasProperty('XDG')) { useXDG = XDG } diff --git a/pom.xml b/pom.xml index ee62a0e3..a51370d0 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ ${maven.build.timestamp} yyyy-MM-dd HH:mm itdelatrisu.opsu.Opsu - false + false src @@ -103,7 +103,7 @@ ${mainClassName} - ${useXDG} + ${XDG}