diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2013-04-23 03:08:22 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2013-04-23 03:08:22 +0200 |
commit | fcf98722c08ede29b8fecbacbf0218309c9d42ad (patch) | |
tree | 1e7b98095c57e70c8f18b2d40d4fddd34ba69b1f | |
parent | e353827f7b7f5196077b513e78aaf8d3eeee19d5 (diff) | |
download | lombok-fcf98722c08ede29b8fecbacbf0218309c9d42ad.tar.gz lombok-fcf98722c08ede29b8fecbacbf0218309c9d42ad.tar.bz2 lombok-fcf98722c08ede29b8fecbacbf0218309c9d42ad.zip |
added support for lombok.disablePostCompiler.
-rw-r--r-- | src/eclipseAgent/lombok/eclipse/agent/PatchFixes.java | 3 |
1 files changed, 3 insertions, 0 deletions
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)); } |