Skip to content
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.

Commit

Permalink
Fixed command line parameter check. Adjusted example configs.
Browse files Browse the repository at this point in the history
  • Loading branch information
code-disaster committed Nov 19, 2015
1 parent 2c50961 commit 7d5996f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions example-config-linux.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"platform": "linux64",
"jdk": "/home/badlogic/Downloads/openjdk-1.7.0-u45-unofficial-icedtea-2.4.3-linux-amd64-image.zip",
"executable": "myapp",
"appjar": "target/packr-1.1-SNAPSHOT.jar",
"mainclass": "com/badlogicgames/packr/TestApp",
"classpath": "target/packr-2.0-SNAPSHOT.jar",
"mainclass": "com.badlogicgames.packr.TestApp",
"vmargs": [
"-Xmx1G"
],
Expand Down
6 changes: 3 additions & 3 deletions example-config-mac.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"platform": "mac",
"jdk": "/Users/badlogic/Downloads/openjdk-1.7.0-u45-unofficial-icedtea-2.4.3-macosx-x86_64-image.zip",
"executable": "myapp",
"appjar": "target/packr-1.2-SNAPSHOT.jar",
"mainclass": "com/badlogicgames/packr/TestApp",
"classpath": "target/packr-1.2-SNAPSHOT.jar",
"mainclass": "com.badlogicgames.packr.TestApp",
"vmargs": [
"-Xmx1G"
],
Expand All @@ -13,4 +13,4 @@
],
"minimizejre": "soft",
"outdir": "out-mac"
}
}
6 changes: 3 additions & 3 deletions example-config-windows.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"platform": "windows",
"jdk": "C:/Users/badlogic/Downloads/openjdk-1.7.0-u45-unofficial-icedtea-2.4.3-windows-i586-image.zip",
"executable": "myapp",
"appjar": "target/packr-1.0-SNAPSHOT.jar",
"mainclass": "com/badlogicgames/packr/TestApp",
"classpath": "target/packr-1.0-SNAPSHOT.jar",
"mainclass": "com.badlogicgames.packr.TestApp",
"vmargs": [
"-Xmx1G"
],
Expand All @@ -13,4 +13,4 @@
],
"minimizejre": "soft",
"outdir": "out-win"
}
}
2 changes: 1 addition & 1 deletion src/main/java/com/badlogicgames/packr/Packr.java
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ private static Map<String, String> parseArgs (String[] args) {
if(params.get("platform") == null) error();
if(params.get("jdk") == null) error();
if(params.get("executable") == null) error();
if(params.get("appjar") == null) error();
if(params.get("classpath") == null) error();
if(params.get("mainclass") == null) error();
if(params.get("outdir") == null) error();

Expand Down

0 comments on commit 7d5996f

Please sign in to comment.