From f124d71f381c7367f73131ee5ed91debebb5c522 Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Fri, 5 Feb 2021 18:04:22 +0000 Subject: [PATCH] Shutup the AP when building, all this is stuff is usually useless log output. (#45) --- .../org/spongepowered/tools/obfuscation/AnnotatedMixins.java | 2 +- .../tools/obfuscation/ObfuscationEnvironment.java | 2 +- .../org/spongepowered/tools/obfuscation/ReferenceManager.java | 4 ++-- .../tools/obfuscation/mapping/common/MappingWriter.java | 4 ++-- .../tools/obfuscation/service/ObfuscationServices.java | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/ap/java/org/spongepowered/tools/obfuscation/AnnotatedMixins.java b/src/ap/java/org/spongepowered/tools/obfuscation/AnnotatedMixins.java index cfd9eb66..84d9dc11 100644 --- a/src/ap/java/org/spongepowered/tools/obfuscation/AnnotatedMixins.java +++ b/src/ap/java/org/spongepowered/tools/obfuscation/AnnotatedMixins.java @@ -150,7 +150,7 @@ final class AnnotatedMixins implements IMixinAnnotationProcessor, ITokenProvider String pluginVersion = this.checkPluginVersion(this.getOption(SupportedOptions.PLUGIN_VERSION)); String pluginVersionString = pluginVersion != null ? String.format(" (MixinGradle Version=%s)", pluginVersion) : ""; - this.printMessage(Kind.NOTE, "SpongePowered MIXIN Annotation Processor Version=" + MixinBootstrap.VERSION + pluginVersionString); + this.printMessage(Kind.OTHER, "SpongePowered MIXIN Annotation Processor Version=" + MixinBootstrap.VERSION + pluginVersionString); this.targets = this.initTargetMap(); this.obf = new ObfuscationManager(this); diff --git a/src/ap/java/org/spongepowered/tools/obfuscation/ObfuscationEnvironment.java b/src/ap/java/org/spongepowered/tools/obfuscation/ObfuscationEnvironment.java index d8005e5e..a5850350 100644 --- a/src/ap/java/org/spongepowered/tools/obfuscation/ObfuscationEnvironment.java +++ b/src/ap/java/org/spongepowered/tools/obfuscation/ObfuscationEnvironment.java @@ -154,7 +154,7 @@ public abstract class ObfuscationEnvironment implements IObfuscationEnvironment File inputFile = new File(inputFileName); try { if (inputFile.isFile()) { - this.ap.printMessage(Kind.NOTE, "Loading " + this.type + " mappings from " + inputFile.getAbsolutePath()); + this.ap.printMessage(Kind.OTHER, "Loading " + this.type + " mappings from " + inputFile.getAbsolutePath()); this.mappingProvider.read(inputFile); successCount++; } diff --git a/src/ap/java/org/spongepowered/tools/obfuscation/ReferenceManager.java b/src/ap/java/org/spongepowered/tools/obfuscation/ReferenceManager.java index f338232a..764fd50e 100644 --- a/src/ap/java/org/spongepowered/tools/obfuscation/ReferenceManager.java +++ b/src/ap/java/org/spongepowered/tools/obfuscation/ReferenceManager.java @@ -150,12 +150,12 @@ public class ReferenceManager implements IReferenceManager { if (fileName.matches("^.*[\\\\/:].*$")) { File outFile = new File(fileName); outFile.getParentFile().mkdirs(); - this.ap.printMessage(Kind.NOTE, "Writing " + description + " to " + outFile.getAbsolutePath()); + this.ap.printMessage(Kind.OTHER, "Writing " + description + " to " + outFile.getAbsolutePath()); return new PrintWriter(outFile); } FileObject outResource = this.ap.getProcessingEnvironment().getFiler().createResource(StandardLocation.CLASS_OUTPUT, "", fileName); - this.ap.printMessage(Kind.NOTE, "Writing " + description + " to " + new File(outResource.toUri()).getAbsolutePath()); + this.ap.printMessage(Kind.OTHER, "Writing " + description + " to " + new File(outResource.toUri()).getAbsolutePath()); return new PrintWriter(outResource.openWriter()); } diff --git a/src/ap/java/org/spongepowered/tools/obfuscation/mapping/common/MappingWriter.java b/src/ap/java/org/spongepowered/tools/obfuscation/mapping/common/MappingWriter.java index 8691c6e5..c1233b6d 100644 --- a/src/ap/java/org/spongepowered/tools/obfuscation/mapping/common/MappingWriter.java +++ b/src/ap/java/org/spongepowered/tools/obfuscation/mapping/common/MappingWriter.java @@ -62,12 +62,12 @@ public abstract class MappingWriter implements IMappingWriter { if (fileName.matches("^.*[\\\\/:].*$")) { File outFile = new File(fileName); outFile.getParentFile().mkdirs(); - this.messager.printMessage(Kind.NOTE, "Writing " + description + " to " + outFile.getAbsolutePath()); + this.messager.printMessage(Kind.OTHER, "Writing " + description + " to " + outFile.getAbsolutePath()); return new PrintWriter(outFile); } FileObject outResource = this.filer.createResource(StandardLocation.CLASS_OUTPUT, "", fileName); - this.messager.printMessage(Kind.NOTE, "Writing " + description + " to " + new File(outResource.toUri()).getAbsolutePath()); + this.messager.printMessage(Kind.OTHER, "Writing " + description + " to " + new File(outResource.toUri()).getAbsolutePath()); return new PrintWriter(outResource.openWriter()); } diff --git a/src/ap/java/org/spongepowered/tools/obfuscation/service/ObfuscationServices.java b/src/ap/java/org/spongepowered/tools/obfuscation/service/ObfuscationServices.java index 2ea96cb7..a845e916 100644 --- a/src/ap/java/org/spongepowered/tools/obfuscation/service/ObfuscationServices.java +++ b/src/ap/java/org/spongepowered/tools/obfuscation/service/ObfuscationServices.java @@ -94,7 +94,7 @@ public final class ObfuscationServices { for (ObfuscationTypeDescriptor obfType : obfTypes) { try { ObfuscationType type = ObfuscationType.create(obfType, ap); - ap.printMessage(Kind.NOTE, serviceName + " supports type: \"" + type + "\""); + ap.printMessage(Kind.OTHER, serviceName + " supports type: \"" + type + "\""); defaultIsPresent |= type.isDefault(); } catch (Exception ex) { ex.printStackTrace();