throw an error if a jar is missing

dev/0.11
modmuss50 2018-06-18 17:01:39 +01:00
parent 69f15e870c
commit 1893966038
No known key found for this signature in database
GPG Key ID: 773D17BE8BF49C82
1 changed files with 4 additions and 0 deletions

View File

@ -90,6 +90,10 @@ public class ModRemapper {
outputConsumer.finish();
remapper.finish();
if(!deobfJar.exists() || !modJar.exists()){
throw new RuntimeException("Failed to remap jar");
}
//Add the deobf jar to be uploaded to maven
project.getArtifacts().add("archives", deobfJar);
}