From bdd17ca45ec2fa33bdee48ed1ee71f82204a488c Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 15 Dec 2011 23:57:53 +0000 Subject: [PATCH] 1.7 added --- .../src/org/aspectj/ajdt/ajc/BuildArgParser.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 759cc8034..8ffc933ef 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 @@ -34,7 +34,6 @@ import org.aspectj.bridge.Message; import org.aspectj.bridge.MessageUtil; import org.aspectj.bridge.SourceLocation; import org.aspectj.bridge.Version; -import org.aspectj.org.eclipse.jdt.core.compiler.InvalidInputException; import org.aspectj.org.eclipse.jdt.internal.compiler.batch.Main; import org.aspectj.org.eclipse.jdt.internal.compiler.impl.CompilerOptions; import org.aspectj.util.FileUtil; @@ -50,7 +49,7 @@ public class BuildArgParser extends Main { private static boolean LOADED_BUNDLE = false; static { - Main.bundleName = BUNDLE_NAME; + Main.bundleName = BUNDLE_NAME; ResourceBundleFactory.getBundle(Locale.getDefault()); if (!LOADED_BUNDLE) { LOADED_BUNDLE = true; @@ -690,10 +689,14 @@ public class BuildArgParser extends Main { } else if (arg.equals("-1.6")) { buildConfig.setBehaveInJava5Way(true); unparsedArgs.add("-1.6"); + } else if (arg.equals("-1.7")) { + buildConfig.setBehaveInJava5Way(true); + unparsedArgs.add("-1.7"); } else if (arg.equals("-source")) { if (args.size() > nextArgIndex) { String level = ((ConfigParser.Arg) args.get(nextArgIndex)).getValue(); - if (level.equals("1.5") || level.equals("5") || level.equals("1.6") || level.equals("6")) { + if (level.equals("1.5") || level.equals("5") || level.equals("1.6") || level.equals("6") || level.equals("1.7") + || level.equals("7")) { buildConfig.setBehaveInJava5Way(true); } unparsedArgs.add("-source"); -- 2.39.5