aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core/src
diff options
context:
space:
mode:
authorwisberg <wisberg>2003-05-08 08:39:31 +0000
committerwisberg <wisberg>2003-05-08 08:39:31 +0000
commit81c05ad2acb34f3c3b59fbd5650f9780f464d45f (patch)
treef48dbf668bf35516c8276516d059b47cb41cbc37 /org.aspectj.ajdt.core/src
parent4e13c68fcf0de360c2d83fe75c7e434169ae1732 (diff)
downloadaspectj-81c05ad2acb34f3c3b59fbd5650f9780f464d45f.tar.gz
aspectj-81c05ad2acb34f3c3b59fbd5650f9780f464d45f.zip
adding output dir/jar by default to classpath to permit resolving types in incremental compile
Might need to be more discriminating and/or to document.
Diffstat (limited to 'org.aspectj.ajdt.core/src')
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildConfig.java38
1 files changed, 22 insertions, 16 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildConfig.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildConfig.java
index 02d1bac09..339fc8eb9 100644
--- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildConfig.java
+++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildConfig.java
@@ -249,22 +249,28 @@ public class AjBuildConfig { // XXX needs bootclasspath?
return (null != incrementalFile);
}
- /**
- * This includes injars and aspectpath
- */
- public List getFullClasspath() {
- if (inJars.isEmpty() && aspectpath.isEmpty()) return getClasspath();
- List full = new ArrayList();
- for (Iterator i = inJars.iterator(); i.hasNext(); ) {
- full.add(((File)i.next()).getAbsolutePath());
- }
- for (Iterator i = aspectpath.iterator(); i.hasNext(); ) {
- full.add(((File)i.next()).getAbsolutePath());
- }
- full.addAll(getClasspath());
- return full;
- }
-
+ /**
+ * @return List (String) classpath of injars, aspectpath entries,
+ * specified classpath (bootclasspath, extdirs, and classpath),
+ * and output dir or jar
+ */
+ public List getFullClasspath() {
+ List full = new ArrayList();
+ for (Iterator i = inJars.iterator(); i.hasNext(); ) {
+ full.add(((File)i.next()).getAbsolutePath());
+ }
+ for (Iterator i = aspectpath.iterator(); i.hasNext(); ) {
+ full.add(((File)i.next()).getAbsolutePath());
+ }
+ full.addAll(getClasspath());
+ if (null != outputDir) {
+ full.add(outputDir.getAbsolutePath());
+ } else if (null != outputJar) {
+ full.add(outputJar.getAbsolutePath());
+ }
+ return full;
+ }
+
public String getLintMode() {
return lintMode;
}