diff options
author | mkersten <mkersten> | 2003-07-23 17:23:22 +0000 |
---|---|---|
committer | mkersten <mkersten> | 2003-07-23 17:23:22 +0000 |
commit | d5ea336dac0b484629f6453afcc7b271446732d4 (patch) | |
tree | bbc3e59ac6e038fc08f548180f22c21c0c77f376 /ajde | |
parent | 6406a55ea065ad3a099b84282addbf986945f20c (diff) | |
download | aspectj-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.java | 26 |
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 |