[jboss-cvs] JBossAS SVN: r83869 - in branches/Branch_5_0/system/src/main/org/jboss/system/server: profileservice/repository and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Feb 4 16:23:17 EST 2009


Author: alesj
Date: 2009-02-04 16:23:17 -0500 (Wed, 04 Feb 2009)
New Revision: 83869

Modified:
   branches/Branch_5_0/system/src/main/org/jboss/system/server/profile/basic/MetaDataAwareProfile.java
   branches/Branch_5_0/system/src/main/org/jboss/system/server/profileservice/repository/SerializableDeploymentRepository.java
Log:
Update on how we check for modifications.

Modified: branches/Branch_5_0/system/src/main/org/jboss/system/server/profile/basic/MetaDataAwareProfile.java
===================================================================
--- branches/Branch_5_0/system/src/main/org/jboss/system/server/profile/basic/MetaDataAwareProfile.java	2009-02-04 21:09:37 UTC (rev 83868)
+++ branches/Branch_5_0/system/src/main/org/jboss/system/server/profile/basic/MetaDataAwareProfile.java	2009-02-04 21:23:17 UTC (rev 83869)
@@ -81,11 +81,8 @@
 
    protected boolean hasBeenModified(VirtualFile root) throws Exception
    {
-      // get file:/ schema
-      URI uri = VFSUtils.getCompatibleURI(root);
-      File file = new File(uri);
       // if root is file check its modification
-      if (file.isFile())
+      if (root.isArchive() || root.isLeaf())
          return root.hasBeenModified();
 
       // else check metadata

Modified: branches/Branch_5_0/system/src/main/org/jboss/system/server/profileservice/repository/SerializableDeploymentRepository.java
===================================================================
--- branches/Branch_5_0/system/src/main/org/jboss/system/server/profileservice/repository/SerializableDeploymentRepository.java	2009-02-04 21:09:37 UTC (rev 83868)
+++ branches/Branch_5_0/system/src/main/org/jboss/system/server/profileservice/repository/SerializableDeploymentRepository.java	2009-02-04 21:23:17 UTC (rev 83869)
@@ -610,11 +610,7 @@
     */
    protected boolean hasBeenModified(VirtualFile root) throws Exception
    {
-      // get file:/ schema
-      URI uri = VFSUtils.getCompatibleURI(root);
-      File file = new File(uri);
-      // if root is file check its modification
-      if (file.isFile())
+      if (root.isArchive() || root.isLeaf())
          return root.hasBeenModified();
 
       // else check metadata




More information about the jboss-cvs-commits mailing list