Shutup the AP when building, all this is stuff is usually useless log output. (#45)

This commit is contained in:
modmuss50 authored and GitHub committed 2021-02-05 18:04:22 +00:00
1 parent 6008d6f3cf
commit f124d71f38
5 files changed
+7 -7

No files matched your search

@@ -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);
@@ -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++;
}
@@ -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());
}
@@ -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());
}
@@ -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();