]> source.dussan.org Git - aspectj.git/commitdiff
272591: allow for runtime from bundle repo
authoraclement <aclement>
Thu, 30 Apr 2009 20:44:56 +0000 (20:44 +0000)
committeraclement <aclement>
Thu, 30 Apr 2009 20:44:56 +0000 (20:44 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java

index a9eb731110344d3495c7689e47669ca52c43048d..99832ba94ca5fb2e0fbb11443968d48c24fc160e 100644 (file)
@@ -758,7 +758,7 @@ public class AjBuildManager implements IOutputClassFileNameProvider, IBinarySour
                // return;
 
                CompilationResultDestinationManager crdm = config.getCompilationResultDestinationManager();
-               AsmManager structureModel = AsmManager.createNewStructureModel(crdm==null?Collections.EMPTY_MAP:crdm.getInpathMap());
+               AsmManager structureModel = AsmManager.createNewStructureModel(crdm == null ? Collections.EMPTY_MAP : crdm.getInpathMap());
                // AsmManager.getDefault().getRelationshipMap().clear();
                IHierarchy model = structureModel.getHierarchy();
                String rootLabel = "<root>";
@@ -900,12 +900,12 @@ public class AjBuildManager implements IOutputClassFileNameProvider, IBinarySour
                return getBcelWorld();
        }
 
-//     void addAspectClassFilesToWeaver(List addedClassFiles) throws IOException {
-//             for (Iterator i = addedClassFiles.iterator(); i.hasNext();) {
-//                     UnwovenClassFile classFile = (UnwovenClassFile) i.next();
-//                     getWeaver().addClassFile(classFile);
-//             }
-//     }
+       // void addAspectClassFilesToWeaver(List addedClassFiles) throws IOException {
+       // for (Iterator i = addedClassFiles.iterator(); i.hasNext();) {
+       // UnwovenClassFile classFile = (UnwovenClassFile) i.next();
+       // getWeaver().addClassFile(classFile);
+       // }
+       // }
 
        public FileSystem getLibraryAccess(String[] classpaths, String[] filenames) {
                String defaultEncoding = buildConfig.getOptions().defaultEncoding;
@@ -1084,7 +1084,8 @@ public class AjBuildManager implements IOutputClassFileNameProvider, IBinarySour
                                if (unitResult.hasProblems() || unitResult.hasTasks()) {
                                        IProblem[] problems = unitResult.getAllProblems();
                                        for (int i = 0; i < problems.length; i++) {
-                                               IMessage message = EclipseAdapterUtils.makeMessage(unitResult.compilationUnit, problems[i], getBcelWorld(),progressListener);
+                                               IMessage message = EclipseAdapterUtils.makeMessage(unitResult.compilationUnit, problems[i], getBcelWorld(),
+                                                               progressListener);
                                                handler.handleMessage(message);
                                        }
                                }
@@ -1257,6 +1258,9 @@ public class AjBuildManager implements IOutputClassFileNameProvider, IBinarySour
                                        ret = "bad jar file found in " + p.getAbsolutePath() + " error: " + ioe;
                                }
                                return null; // this is the "OK" return value!
+                       } else if (p.isFile() && p.getName().indexOf("org.aspectj.runtime") != -1) {
+                               // likely to be a variant from the springsource bundle repo b272591
+                               return null;
                        } else {
                                // might want to catch other classpath errors
                        }