summaryrefslogtreecommitdiffstats
path: root/ajde
diff options
context:
space:
mode:
authoraclement <aclement>2007-01-09 09:37:24 +0000
committeraclement <aclement>2007-01-09 09:37:24 +0000
commite5ef495c96e6ea5872c091e1df455d227c26cd0b (patch)
tree6622b42dd62ce8b91fe6e0fe74a48b79fb4cc875 /ajde
parente9e52fea126c8177bf8fead1353ffc31e208440b (diff)
downloadaspectj-e5ef495c96e6ea5872c091e1df455d227c26cd0b.tar.gz
aspectj-e5ef495c96e6ea5872c091e1df455d227c26cd0b.zip
test and fix for 166580: multiple output locations and incremental compilation
Diffstat (limited to 'ajde')
-rw-r--r--ajde/src/org/aspectj/ajde/OutputLocationManager.java12
-rw-r--r--ajde/src/org/aspectj/ajde/internal/OutputLocationAdapter.java9
2 files changed, 21 insertions, 0 deletions
diff --git a/ajde/src/org/aspectj/ajde/OutputLocationManager.java b/ajde/src/org/aspectj/ajde/OutputLocationManager.java
index 3535722dc..cba91c1ec 100644
--- a/ajde/src/org/aspectj/ajde/OutputLocationManager.java
+++ b/ajde/src/org/aspectj/ajde/OutputLocationManager.java
@@ -12,6 +12,7 @@
package org.aspectj.ajde;
import java.io.File;
+import java.util.List;
/**
* Interface to be implemented by clients that wish to control the output
@@ -43,5 +44,16 @@ public interface OutputLocationManager {
* should be copied
*/
File getOutputLocationForResource(File resource);
+
+ /**
+ * Return a list of all output locations handled by this OutputLocationManager
+ */
+ List /*File*/ getAllOutputLocations();
+
+ /**
+ * Return the default output location (for example, <my_project>/bin). This is
+ * where classes which are on the inpath will be placed.
+ */
+ File getDefaultOutputLocation();
}
diff --git a/ajde/src/org/aspectj/ajde/internal/OutputLocationAdapter.java b/ajde/src/org/aspectj/ajde/internal/OutputLocationAdapter.java
index 9ac479c8c..4ec041feb 100644
--- a/ajde/src/org/aspectj/ajde/internal/OutputLocationAdapter.java
+++ b/ajde/src/org/aspectj/ajde/internal/OutputLocationAdapter.java
@@ -12,6 +12,7 @@
package org.aspectj.ajde.internal;
import java.io.File;
+import java.util.List;
import org.aspectj.ajde.OutputLocationManager;
import org.aspectj.ajdt.internal.compiler.CompilationResultDestinationManager;
@@ -32,4 +33,12 @@ public class OutputLocationAdapter implements CompilationResultDestinationManage
return this.locationManager.getOutputLocationForResource(resource);
}
+ public List getAllOutputLocations() {
+ return this.locationManager.getAllOutputLocations();
+ }
+
+ public File getDefaultOutputLocation() {
+ return this.locationManager.getDefaultOutputLocation();
+ }
+
}