[jboss-cvs] JBossAS SVN: r79980 - trunk/system/src/main/org/jboss/system/server/profileservice/repository.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Oct 23 11:53:10 EDT 2008


Author: emuckenhuber
Date: 2008-10-23 11:53:10 -0400 (Thu, 23 Oct 2008)
New Revision: 79980

Modified:
   trunk/system/src/main/org/jboss/system/server/profileservice/repository/AbstractFileAttachmentsSerializer.java
Log:
[JBAS-6037] load attachment from the correct path

Modified: trunk/system/src/main/org/jboss/system/server/profileservice/repository/AbstractFileAttachmentsSerializer.java
===================================================================
--- trunk/system/src/main/org/jboss/system/server/profileservice/repository/AbstractFileAttachmentsSerializer.java	2008-10-23 14:57:42 UTC (rev 79979)
+++ trunk/system/src/main/org/jboss/system/server/profileservice/repository/AbstractFileAttachmentsSerializer.java	2008-10-23 15:53:10 UTC (rev 79980)
@@ -24,14 +24,10 @@
 import java.io.File;
 import java.io.IOException;
 import java.io.NotSerializableException;
-import java.io.Serializable;
 import java.util.Map;
 import java.util.Map.Entry;
 
-import org.jboss.deployers.structure.spi.DeploymentUnit;
-import org.jboss.deployers.vfs.spi.client.VFSDeployment;
 import org.jboss.logging.Logger;
-import org.jboss.profileservice.aop.TrackingAdvice;
 import org.jboss.profileservice.spi.AttachmentsSerializer;
 
 /**
@@ -64,8 +60,7 @@
 
       String vfsPath = baseName;
       vfsPath += ".attachments";
-      File deployerDir = new File(attachmentsStoreDir, vfsPath);
-      File attachmentsStore = new File(deployerDir, vfsPath);
+      File attachmentsStore = new File(attachmentsStoreDir, vfsPath);
       if( attachmentsStore.exists() == false )
       {
          return null;




More information about the jboss-cvs-commits mailing list