aboutsummaryrefslogtreecommitdiffstats
path: root/ajde.core
diff options
context:
space:
mode:
authoraclement <aclement>2008-10-03 23:30:39 +0000
committeraclement <aclement>2008-10-03 23:30:39 +0000
commite78ca8b57dbb82776f96d288353f659b2c3c3cfd (patch)
tree30e83586260df0c06dafecbe84eee7f38a4a29c7 /ajde.core
parentedc225770f8f3037c87481ab3656e1b6c08ff449 (diff)
downloadaspectj-e78ca8b57dbb82776f96d288353f659b2c3c3cfd.tar.gz
aspectj-e78ca8b57dbb82776f96d288353f659b2c3c3cfd.zip
make cleanup part of compiler discard
Diffstat (limited to 'ajde.core')
-rw-r--r--ajde.core/src/org/aspectj/ajde/core/AjCompiler.java11
-rw-r--r--ajde.core/src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java4
2 files changed, 5 insertions, 10 deletions
diff --git a/ajde.core/src/org/aspectj/ajde/core/AjCompiler.java b/ajde.core/src/org/aspectj/ajde/core/AjCompiler.java
index 758073d83..72eb4058c 100644
--- a/ajde.core/src/org/aspectj/ajde/core/AjCompiler.java
+++ b/ajde.core/src/org/aspectj/ajde/core/AjCompiler.java
@@ -89,13 +89,6 @@ public class AjCompiler {
}
/**
- * Cleanup the compiler instance, ready for removal.
- */
- public void cleanup() {
- buildManager.cleanup();
- }
-
- /**
* Perform a full build.
*/
public void buildFresh() {
@@ -106,10 +99,12 @@ public class AjCompiler {
/**
* Clear the incremental state associated with this AjCompiler from the IncrementalStateManager. This is necessary until AjState
- * is reworked and there's an AjState associated with an AjCompiler rather than requiring a map of them.
+ * is reworked and there's an AjState associated with an AjCompiler rather than requiring a map of them. If the environment is
+ * not cleaned up then jar locks may be kept.
*/
public void clearLastState() {
IncrementalStateManager.removeIncrementalStateInformationFor(compilerId);
+ buildManager.cleanupEnvironment();
}
/**
diff --git a/ajde.core/src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java b/ajde.core/src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java
index c22248f46..074222b51 100644
--- a/ajde.core/src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java
+++ b/ajde.core/src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java
@@ -391,7 +391,7 @@ public class AjdeCoreBuildManager {
return ajBuildManager.getCustomMungerFactory();
}
- public void cleanup() {
- ajBuildManager.cleanup();
+ public void cleanupEnvironment() {
+ ajBuildManager.cleanupEnvironment();
}
}