Skip to content

Commit

Permalink
Add parameter to not copy gamepack
Browse files Browse the repository at this point in the history
  • Loading branch information
maaatts committed Sep 2, 2015
1 parent cf8e088 commit 659bb60
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/me/themallard/bitmmo/Bitmmo.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

public class Bitmmo {
public static final String VERSION = "1.1.2";
public static boolean copygamepack = true;

public static void main(String[] args) {
System.out.printf(
Expand All @@ -50,6 +51,10 @@ public static void main(String[] args) {
if (args[i].equals("-r")) {
revision = args[i + 1];
}

if (args[i].equals("--nocopy")) {
copygamepack = false;
}
}

{
Expand Down Expand Up @@ -91,9 +96,12 @@ public static void main(String[] args) {
pl.run(transformer.run(analysis.run()));
analysis.getClassNodes().putAll(pl.getDependencies());
analysis.dump();
Thread.sleep(50);
Files.copy(new File(String.format("./out/%s/refactor_%s.jar", revision, revision)).toPath(),
new File("./gamepack.jar").toPath(), StandardCopyOption.REPLACE_EXISTING);

if (copygamepack) {
Thread.sleep(50);
Files.copy(new File(String.format("./out/%s/refactor_%s.jar", revision, revision)).toPath(),
new File("./gamepack.jar").toPath(), StandardCopyOption.REPLACE_EXISTING);
}
} catch (Exception e) {
e.printStackTrace();
System.exit(-1);
Expand Down

0 comments on commit 659bb60

Please sign in to comment.