aboutsummaryrefslogtreecommitdiffstats
path: root/ajde
diff options
context:
space:
mode:
authormkersten <mkersten>2003-07-23 17:23:22 +0000
committermkersten <mkersten>2003-07-23 17:23:22 +0000
commitd5ea336dac0b484629f6453afcc7b271446732d4 (patch)
treebbc3e59ac6e038fc08f548180f22c21c0c77f376 /ajde
parent6406a55ea065ad3a099b84282addbf986945f20c (diff)
downloadaspectj-d5ea336dac0b484629f6453afcc7b271446732d4.tar.gz
aspectj-d5ea336dac0b484629f6453afcc7b271446732d4.zip
Fix for AJDT bug 40380.
Diffstat (limited to 'ajde')
-rw-r--r--ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java26
1 files changed, 15 insertions, 11 deletions
diff --git a/ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java b/ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java
index 0722b425a..cbd31eb93 100644
--- a/ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java
+++ b/ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java
@@ -16,12 +16,22 @@
package org.aspectj.ajde.internal;
+import java.io.File;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+import java.util.StringTokenizer;
+
import org.aspectj.ajde.Ajde;
import org.aspectj.ajde.BuildOptionsAdapter;
import org.aspectj.ajde.BuildProgressMonitor;
import org.aspectj.ajde.ProjectPropertiesAdapter;
import org.aspectj.ajde.TaskListManager;
import org.aspectj.ajdt.ajc.AjdtCommand;
+import org.aspectj.ajdt.ajc.BuildArgParser;
import org.aspectj.ajdt.internal.core.builder.AjBuildConfig;
import org.aspectj.ajdt.internal.core.builder.AjBuildManager;
import org.aspectj.bridge.AbortException;
@@ -34,15 +44,6 @@ import org.aspectj.util.LangUtil;
import org.eclipse.core.runtime.OperationCanceledException;
import org.eclipse.jdt.internal.compiler.impl.CompilerOptions;
-import java.io.File;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-import java.util.StringTokenizer;
-
public class CompilerAdapter {
private Map optionsMap;
@@ -158,10 +159,13 @@ public class CompilerAdapter {
String[] args = new String[] { "@" + config.getAbsolutePath() };
CountingMessageHandler counter
= CountingMessageHandler.makeCountingMessageHandler(messageHandler);
- AjBuildConfig local = AjdtCommand.genBuildConfig(args, counter);
+ BuildArgParser parser = new BuildArgParser();
+ AjBuildConfig local = parser.genBuildConfig(args, counter, false);
+
if (counter.hasErrors()) {
return null;
- }
+ }
+
local.setConfigFile(config);
// -- get globals, treat as defaults used if no local values