aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2010-09-01 15:00:33 +0000
committeraclement <aclement>2010-09-01 15:00:33 +0000
commit03c43f5ca578273b8f94d5caf7b92718f84cd911 (patch)
tree64ebf1761325c1ce0c6b9be2cf1467e517190751
parent2a8d684a678b1761acbe081bc1ddad3d3c9c405e (diff)
downloadaspectj-03c43f5ca578273b8f94d5caf7b92718f84cd911.tar.gz
aspectj-03c43f5ca578273b8f94d5caf7b92718f84cd911.zip
324190
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java22
1 files changed, 12 insertions, 10 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java
index ee6f8dd0a..5a63b5f0b 100644
--- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java
+++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java
@@ -721,17 +721,19 @@ public class AjBuildManager implements IOutputClassFileNameProvider, IBinarySour
File outputDir = (File) iterator.next();
outputDirsToAspects.put(outputDir, new ArrayList<String>());
}
- Set<Map.Entry<String, char[]>> entrySet = aspectNamesToFileNames.entrySet();
- for (Iterator<Map.Entry<String, char[]>> iterator = entrySet.iterator(); iterator.hasNext();) {
- Map.Entry<String, char[]> entry = iterator.next();
- String aspectName = entry.getKey();
- char[] fileName = entry.getValue();
- File outputDir = buildConfig.getCompilationResultDestinationManager().getOutputLocationForClass(
- new File(new String(fileName)));
- if (!outputDirsToAspects.containsKey(outputDir)) {
- outputDirsToAspects.put(outputDir, new ArrayList<String>());
+ if (aspectNamesToFileNames != null) {
+ Set<Map.Entry<String, char[]>> entrySet = aspectNamesToFileNames.entrySet();
+ for (Iterator<Map.Entry<String, char[]>> iterator = entrySet.iterator(); iterator.hasNext();) {
+ Map.Entry<String, char[]> entry = iterator.next();
+ String aspectName = entry.getKey();
+ char[] fileName = entry.getValue();
+ File outputDir = buildConfig.getCompilationResultDestinationManager().getOutputLocationForClass(
+ new File(new String(fileName)));
+ if (!outputDirsToAspects.containsKey(outputDir)) {
+ outputDirsToAspects.put(outputDir, new ArrayList<String>());
+ }
+ ((List) outputDirsToAspects.get(outputDir)).add(aspectName);
}
- ((List) outputDirsToAspects.get(outputDir)).add(aspectName);
}
}
return outputDirsToAspects;