package org.aspectj.ajde;
+import java.util.Map;
import java.util.Set;
/**
public static final String DEBUG_VARS = "vars";
public static final String DEBUG_ALL = "all";
+
+ /**
+ * This map shortcuts any other Java-specific options that would get set by return
+ * values from the other methods.
+ *
+ * @return a map of all the java-specific options, null if individual options will be passed
+ */
+ public Map getJavaOptionsMap();
+
/**
* Use javac to generate .class files. The default is "false".
* From -usejavac
public class CompilerAdapter {
+ private Map optionsMap;
private AjBuildManager buildManager = null;
private MessageHandlerAdapter messageHandler = null;
private BuildNotifierAdapter currNotifier = null;
* corresponding AjBuildConfig otherwise
*/
public AjBuildConfig genBuildConfig(String configFile) {
+
+
init();
File config = new File(configFile);
if (!config.exists()) {
*
*/
protected AjBuildConfig fixupBuildConfig(AjBuildConfig local, AjBuildConfig global, BuildOptionsAdapter buildOptions, ProjectPropertiesAdapter projectOptions) {
+ if (Ajde.getDefault().getBuildManager().getBuildOptions().getJavaOptionsMap() != null) {
+ local.getJavaOptions().putAll(Ajde.getDefault().getBuildManager().getBuildOptions().getJavaOptionsMap());
+ }
return local;
}
import java.util.HashSet;
import java.util.Iterator;
+import java.util.Map;
import java.util.Set;
import java.util.StringTokenizer;
private static final String PRESERVE_LOCALS = AJC + ".preserveLocals";
private static final String DEFAULT = "default";
-
public AjcBuildOptions(UserPreferencesAdapter userPreferencesAdapter) {
this.preferencesAdapter = userPreferencesAdapter;
+
+
}
/** @deprecated */
return debugOptions.toString();
}
+
+ public Map getJavaOptionsMap() {
+ return null;
+ }
+
}