From fcf98722c08ede29b8fecbacbf0218309c9d42ad Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Tue, 23 Apr 2013 03:08:22 +0200 Subject: added support for lombok.disablePostCompiler. --- src/eclipseAgent/lombok/eclipse/agent/PatchFixes.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/eclipseAgent') diff --git a/src/eclipseAgent/lombok/eclipse/agent/PatchFixes.java b/src/eclipseAgent/lombok/eclipse/agent/PatchFixes.java index cb91fd25..cb3ee817 100644 --- a/src/eclipseAgent/lombok/eclipse/agent/PatchFixes.java +++ b/src/eclipseAgent/lombok/eclipse/agent/PatchFixes.java @@ -330,15 +330,18 @@ public class PatchFixes { } public static byte[] runPostCompiler(byte[] bytes, String fileName) { + if (System.getProperty("lombok.disablePostCompiler", null) != null) return bytes; byte[] transformed = PostCompiler.applyTransformations(bytes, fileName, DiagnosticsReceiver.CONSOLE); return transformed == null ? bytes : transformed; } public static OutputStream runPostCompiler(OutputStream out) throws IOException { + if (System.getProperty("lombok.disablePostCompiler", null) != null) return out; return PostCompiler.wrapOutputStream(out, "TEST", DiagnosticsReceiver.CONSOLE); } public static BufferedOutputStream runPostCompiler(BufferedOutputStream out, String path, String name) throws IOException { + if (System.getProperty("lombok.disablePostCompiler", null) != null) return out; String fileName = path + "/" + name; return new BufferedOutputStream(PostCompiler.wrapOutputStream(out, fileName, DiagnosticsReceiver.CONSOLE)); } -- cgit