aboutsummaryrefslogtreecommitdiffstats
path: root/ajde
diff options
context:
space:
mode:
authoracolyer <acolyer>2003-02-26 22:05:59 +0000
committeracolyer <acolyer>2003-02-26 22:05:59 +0000
commit153b981aa2a3a3b9519d132fc7af65b671c96e68 (patch)
treeb74884527c37e176fd17bb7fd8a0c4691e6e4929 /ajde
parent2a7c636fc2ab2aae553f9e40ef08dc66f6a0ee57 (diff)
downloadaspectj-153b981aa2a3a3b9519d132fc7af65b671c96e68.tar.gz
aspectj-153b981aa2a3a3b9519d132fc7af65b671c96e68.zip
Switched default for Ajde (batch compile) to have
debug info turned on.
Diffstat (limited to 'ajde')
-rw-r--r--ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java31
1 files changed, 17 insertions, 14 deletions
diff --git a/ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java b/ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java
index 60aa23d02..8d050d89c 100644
--- a/ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java
+++ b/ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java
@@ -177,29 +177,32 @@ public class CompilerAdapter {
Set debugOptions = options.getDebugLevel();
if (!LangUtil.isEmpty(debugOptions)) {
- // default is all options off, so just need to selectively
- // enable
+ // default is all options on, so just need to selectively
+ // disable
+ boolean sourceLine = false;
+ boolean varAttr = false;
+ boolean lineNo = false;
Iterator it = debugOptions.iterator();
while (it.hasNext()){
String debug = (String) it.next();
if ( debug.equals( BuildOptionsAdapter.DEBUG_ALL )) {
- javaOptions.put( CompilerOptions.OPTION_LineNumberAttribute,
- CompilerOptions.GENERATE);
- javaOptions.put( CompilerOptions.OPTION_SourceFileAttribute,
- CompilerOptions.GENERATE);
- javaOptions.put( CompilerOptions.OPTION_LocalVariableAttribute,
- CompilerOptions.GENERATE);
+ sourceLine = true;
+ varAttr = true;
+ lineNo = true;
} else if ( debug.equals( BuildOptionsAdapter.DEBUG_LINES )) {
- javaOptions.put( CompilerOptions.OPTION_LineNumberAttribute,
- CompilerOptions.GENERATE);
+ lineNo = true;
} else if ( debug.equals( BuildOptionsAdapter.DEBUG_SOURCE )) {
- javaOptions.put( CompilerOptions.OPTION_SourceFileAttribute,
- CompilerOptions.GENERATE);
+ sourceLine = true;
} else if ( debug.equals( BuildOptionsAdapter.DEBUG_VARS)) {
- javaOptions.put( CompilerOptions.OPTION_LocalVariableAttribute,
- CompilerOptions.GENERATE);
+ varAttr = true;
}
}
+ if (sourceLine) javaOptions.put(CompilerOptions.OPTION_SourceFileAttribute,
+ CompilerOptions.GENERATE);
+ if (varAttr) javaOptions.put(CompilerOptions.OPTION_LocalVariableAttribute,
+ CompilerOptions.GENERATE);
+ if (lineNo) javaOptions.put(CompilerOptions.OPTION_LineNumberAttribute,
+ CompilerOptions.GENERATE);
}
if ( options.getNoImportError() ) {