From 03f257a9257bd0c82d610d62f70cc8c05faad9d4 Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 7 Jun 2010 17:58:13 +0000 Subject: [PATCH] pushin --- org.aspectj.ajdt.core/.isJava5 | 1 + .../src/org/aspectj/ajdt/ajc/BuildArgParser.java | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 org.aspectj.ajdt.core/.isJava5 diff --git a/org.aspectj.ajdt.core/.isJava5 b/org.aspectj.ajdt.core/.isJava5 new file mode 100644 index 000000000..0519ecba6 --- /dev/null +++ b/org.aspectj.ajdt.core/.isJava5 @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/BuildArgParser.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/BuildArgParser.java index c2917ac93..88357a014 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/BuildArgParser.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/BuildArgParser.java @@ -43,6 +43,7 @@ import org.aspectj.weaver.Constants; import org.aspectj.weaver.Dump; import org.aspectj.weaver.WeaverMessages; +@SuppressWarnings("unchecked") public class BuildArgParser extends Main { private static final String BUNDLE_NAME = "org.aspectj.ajdt.ajc.messages"; @@ -454,7 +455,7 @@ public class BuildArgParser extends Main { args.remove(args.get(nextArgIndex)); } } else if (arg.equals("-makeAjReflectable")) { - buildConfig.setMakeReflectable(true); + buildConfig.setMakeReflectable(true); } else if (arg.equals("-sourceroots")) { if (args.size() > nextArgIndex) { List sourceRoots = new ArrayList(); @@ -569,6 +570,13 @@ public class BuildArgParser extends Main { } } else if (arg.startsWith("-Xset:")) { buildConfig.setXconfigurationInfo(arg.substring(6)); + } else if (arg.startsWith("-aspectj.pushin=")) { + // a little dirty but this should never be used in the IDE + try { + System.setProperty("aspectj.pushin", arg.substring(16)); + } catch (Exception e) { + e.printStackTrace(); + } } else if (arg.startsWith("-XnotReweavable")) { buildConfig.setXnotReweavable(true); } else if (arg.equals("-XnoInline")) { -- 2.39.5