[jboss-cvs] JBossAS SVN: r95280 - projects/vfs/branches/Branch_2_2/src/main/java/org/jboss/virtual.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Oct 21 07:59:09 EDT 2009
Author: alesj
Date: 2009-10-21 07:59:09 -0400 (Wed, 21 Oct 2009)
New Revision: 95280
Modified:
projects/vfs/branches/Branch_2_2/src/main/java/org/jboss/virtual/AssembledDirectory.java
Log:
Remove dir at cleanup.
Modified: projects/vfs/branches/Branch_2_2/src/main/java/org/jboss/virtual/AssembledDirectory.java
===================================================================
--- projects/vfs/branches/Branch_2_2/src/main/java/org/jboss/virtual/AssembledDirectory.java 2009-10-21 11:55:14 UTC (rev 95279)
+++ projects/vfs/branches/Branch_2_2/src/main/java/org/jboss/virtual/AssembledDirectory.java 2009-10-21 11:59:09 UTC (rev 95280)
@@ -81,6 +81,23 @@
AssembledContextFactory.getInstance().remove(directory);
}
+ @Override
+ public void cleanup()
+ {
+ try
+ {
+ if (getParent() == null)
+ removeAssembledDirectory(this);
+ }
+ catch (Exception ignored)
+ {
+ }
+ finally
+ {
+ super.cleanup();
+ }
+ }
+
/**
* Add files recursively from root, using the no jars filter.
*
More information about the jboss-cvs-commits
mailing list