[jboss-cvs] JBossAS SVN: r87136 - branches/Branch_5_x/system/src/main/org/jboss/system/server/profileservice/repository.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Apr 10 12:07:50 EDT 2009


Author: emuckenhuber
Date: 2009-04-10 12:07:50 -0400 (Fri, 10 Apr 2009)
New Revision: 87136

Modified:
   branches/Branch_5_x/system/src/main/org/jboss/system/server/profileservice/repository/BasicDeploymentRepository.java
Log:
fix hot-deployment

Modified: branches/Branch_5_x/system/src/main/org/jboss/system/server/profileservice/repository/BasicDeploymentRepository.java
===================================================================
--- branches/Branch_5_x/system/src/main/org/jboss/system/server/profileservice/repository/BasicDeploymentRepository.java	2009-04-10 15:55:10 UTC (rev 87135)
+++ branches/Branch_5_x/system/src/main/org/jboss/system/server/profileservice/repository/BasicDeploymentRepository.java	2009-04-10 16:07:50 UTC (rev 87136)
@@ -114,25 +114,6 @@
       updateLastModfied();
    }
    
-   @Override
-   public void addDeployment(String vfsPath, ProfileDeployment d) throws Exception
-   {
-      // Suspend hot deployment checking
-      if( log.isTraceEnabled() )
-         log.trace("Aquiring content write lock");
-      lockWrite();
-      try
-      {
-         super.addDeployment(vfsPath, d);
-      }
-      finally
-      {
-         unlockWrite();
-         if (log.isTraceEnabled())
-            log.trace("Released content write lock");
-      }
-   }
-   
    public Collection<ModificationInfo> getModifiedDeployments() throws Exception
    {
       return Collections.emptySet();
@@ -162,10 +143,6 @@
          if(exists && isFailIfAlreadyExists())
             throw new SyncFailedException("Deployment content already exists: "+ contentFile.getAbsolutePath());
          
-         // Create the new file
-         if(exists == false)
-            contentFile.createNewFile();
-         
          // Copy streams
          FileOutputStream fos = new FileOutputStream(contentFile);
          try




More information about the jboss-cvs-commits mailing list