]> source.dussan.org Git - aspectj.git/commitdiff
adding output dir/jar by default to classpath to permit resolving types in incrementa...
authorwisberg <wisberg>
Thu, 8 May 2003 08:39:31 +0000 (08:39 +0000)
committerwisberg <wisberg>
Thu, 8 May 2003 08:39:31 +0000 (08:39 +0000)
Might need to be more discriminating and/or to document.

org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildConfig.java

index 02d1bac0905e2cc1b3366af03ad4d15bf9a35e4d..339fc8eb910e64b1c7c7a8755370b3505f3d4bf4 100644 (file)
@@ -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;
        }