Quellcode durchsuchen

Moved clearning of relationship map to AjBuildManager in order to make

repeated invocations with -emacssym work (refer to Matthew's patch in 41181).
tags/v_preCompileLoopAlteration
mkersten vor 20 Jahren
Ursprung
Commit
1f78bbd8e7

+ 0
- 3
ajde/src/org/aspectj/ajde/Ajde.java Datei anzeigen

@@ -294,9 +294,6 @@ public class Ajde {
* Writes the default configuration file if it has been selected for compilation
*/
public void compileStarted(String buildConfig) {
// TODO: implement incremental policy
AsmManager.getDefault().getRelationshipMap().clear();
String configFilePath = projectProperties.getDefaultBuildConfigFile();
if (buildConfig.equals(configFilePath)) {
configurationManager.writePaths(configFilePath, projectProperties.getProjectSourceFiles());

+ 9
- 1
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java Datei anzeigen

@@ -166,9 +166,17 @@ public class AjBuildManager {
}
}
/**
* Responsible for managing the ASM model between builds. Contains the policy for
* maintaining the persistance of elements in the model.
*
* TODO: implement incremental policy.
*/
private void setupModel() {
String rootLabel = "<root>";
String rootLabel = "<root>";
IHierarchy model = AsmManager.getDefault().getHierarchy();
AsmManager.getDefault().getRelationshipMap().clear();
IProgramElement.Kind kind = IProgramElement.Kind.FILE_JAVA;
if (buildConfig.getConfigFile() != null) {
rootLabel = buildConfig.getConfigFile().getName();

Laden…
Abbrechen
Speichern