weaver 2004/07/06 07:27:03
Modified: portal/src/java/org/apache/jetspeed/deployment/impl
VFSDeploymentObject.java
Log:
Added explicit calls to remove deployment artifact files from the cache.
Revision Changes Path
1.2 +5 -1
jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/deployment/impl/VFSDeploymentObject.java
Index: VFSDeploymentObject.java
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/deployment/impl/VFSDeploymentObject.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- VFSDeploymentObject.java 2 Jul 2004 14:07:32 -0000 1.1
+++ VFSDeploymentObject.java 6 Jul 2004 14:27:03 -0000 1.2
@@ -32,6 +32,7 @@
protected String path;
protected String name;
protected FileObject fsStructure;
+ protected FileObject fsObject;
/**
* @throws IOException
@@ -51,7 +52,7 @@
this.name = deployArtifact.getName();
this.fsManager = fsManager;
path = deployArtifact.getAbsolutePath();
- FileObject fsObject = fsManager.toFileObject(deployArtifact);
+ fsObject = fsManager.toFileObject(deployArtifact);
if(fsObject.getType().equals(FileType.FILE))
{
try
@@ -110,6 +111,9 @@
public void close() throws IOException
{
fsStructure.close();
+ fsObject.close();
+ fsManager.getFilesCache().removeFile(fsStructure.getFileSystem(),
fsStructure.getName());
+ fsManager.getFilesCache().removeFile(fsObject.getFileSystem(),
fsObject.getName());
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]