aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core/src
diff options
context:
space:
mode:
authormkersten <mkersten>2003-01-25 01:25:30 +0000
committermkersten <mkersten>2003-01-25 01:25:30 +0000
commit85a827a7f269a18a0c80802811bbc2aa3766c2e4 (patch)
tree75acaa45c529c458122ee2a1e601474b925fc87d /org.aspectj.ajdt.core/src
parente5660e9d2e962392ad1b3bcd1fc5cbe4725cf8ae (diff)
downloadaspectj-85a827a7f269a18a0c80802811bbc2aa3766c2e4.tar.gz
aspectj-85a827a7f269a18a0c80802811bbc2aa3766c2e4.zip
Committed patches specified in:
http://bugs.eclipse.org/bugs/show_bug.cgi?id=29769
Diffstat (limited to 'org.aspectj.ajdt.core/src')
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/BuildArgParser.java4
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildConfig.java73
2 files changed, 75 insertions, 2 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 99c2dc8ac..4df6f257e 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
@@ -355,7 +355,9 @@ public class BuildArgParser extends org.eclipse.jdt.internal.compiler.batch.Main
} else if (arg.equals("-emacssym")) {
buildConfig.setEmacsSymMode(true);
buildConfig.setGenerateModelMode(true);
- } else if (arg.equals("-noweave")) {
+ //AMC - added -XnoWeave to options that match, in line with
+ // AspectJ 1.1 release notes documentation.
+ } else if (arg.equals("-noweave") || arg.equals( "-XnoWeave")) {
buildConfig.setNoWeave(true);
} else if (arg.equals("-XserializableAspects")) {
buildConfig.setXserializableAspects(true);
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildConfig.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildConfig.java
index 60089d65c..301fd1bae 100644
--- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildConfig.java
+++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildConfig.java
@@ -8,6 +8,9 @@
*
* Contributors:
* PARC initial implementation
+ * Adrian Colyer added constructor to populate javaOptions with
+ * default settings - 01.20.2003
+ * Bugzilla #29768, 29769
* ******************************************************************/
@@ -16,12 +19,14 @@ package org.aspectj.ajdt.internal.core.builder;
import java.io.File;
import java.util.*;
+import org.eclipse.jdt.internal.compiler.impl.CompilerOptions;
+
/**
* All configuration information needed to run the AspectJ compiler.
*/
public class AjBuildConfig {
- public static final String AJLINT_INGORE = "ignore";
+ public static final String AJLINT_IGNORE = "ignore";
public static final String AJLINT_WARN = "warn";
public static final String AJLINT_ERROR = "error";
public static final String AJLINT_DEFAULT = "default";
@@ -45,6 +50,72 @@ public class AjBuildConfig {
private File lintSpecFile = null;
/**
+ * Intialises the javaOptions Map to hold the default
+ * JDT Compiler settings. Added by AMC 01.20.2003 in reponse
+ * to bug #29768 and enh. 29769.
+ * The settings here are duplicated from those set in
+ * org.eclipse.jdt.internal.compiler.batch.Main, but I've elected to
+ * copy them rather than refactor the JDT class since this keeps
+ * integration with future JDT releases easier (?).
+ */
+ public AjBuildConfig( ) {
+ javaOptions.put(
+ CompilerOptions.OPTION_LocalVariableAttribute,
+ CompilerOptions.DO_NOT_GENERATE);
+ javaOptions.put(
+ CompilerOptions.OPTION_LineNumberAttribute,
+ CompilerOptions.DO_NOT_GENERATE);
+ javaOptions.put(
+ CompilerOptions.OPTION_SourceFileAttribute,
+ CompilerOptions.DO_NOT_GENERATE);
+ javaOptions.put(
+ CompilerOptions.OPTION_PreserveUnusedLocal,
+ CompilerOptions.OPTIMIZE_OUT);
+ javaOptions.put(
+ CompilerOptions.OPTION_ReportUnreachableCode,
+ CompilerOptions.ERROR);
+ javaOptions.put(
+ CompilerOptions.OPTION_ReportInvalidImport,
+ CompilerOptions.ERROR);
+ javaOptions.put(
+ CompilerOptions.OPTION_ReportOverridingPackageDefaultMethod,
+ CompilerOptions.WARNING);
+ javaOptions.put(
+ CompilerOptions.OPTION_ReportMethodWithConstructorName,
+ CompilerOptions.WARNING);
+ javaOptions.put(
+ CompilerOptions.OPTION_ReportDeprecation,
+ CompilerOptions.WARNING);
+ javaOptions.put(
+ CompilerOptions.OPTION_ReportHiddenCatchBlock,
+ CompilerOptions.WARNING);
+ javaOptions.put(
+ CompilerOptions.OPTION_ReportUnusedLocal,
+ CompilerOptions.IGNORE);
+ javaOptions.put(
+ CompilerOptions.OPTION_ReportUnusedParameter,
+ CompilerOptions.IGNORE);
+ javaOptions.put(
+ CompilerOptions.OPTION_ReportSyntheticAccessEmulation,
+ CompilerOptions.IGNORE);
+ javaOptions.put(
+ CompilerOptions.OPTION_ReportNonExternalizedStringLiteral,
+ CompilerOptions.IGNORE);
+ javaOptions.put(
+ CompilerOptions.OPTION_ReportAssertIdentifier,
+ CompilerOptions.IGNORE);
+ javaOptions.put(
+ CompilerOptions.OPTION_Compliance,
+ CompilerOptions.VERSION_1_3);
+ javaOptions.put(
+ CompilerOptions.OPTION_Source,
+ CompilerOptions.VERSION_1_3);
+ javaOptions.put(
+ CompilerOptions.OPTION_TargetPlatform,
+ CompilerOptions.VERSION_1_1);
+ }
+
+ /**
* returned files includes <ul>
* <li>files explicitly listed on command-line</li>
* <li>files listed by reference in argument list files</li>