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

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Apr 12 05:58:15 EDT 2010


Author: emuckenhuber
Date: 2010-04-12 05:58:14 -0400 (Mon, 12 Apr 2010)
New Revision: 103814

Modified:
   trunk/system/src/main/java/org/jboss/system/server/profileservice/repository/AutoUnmounter.java
Log:
fix backup location.

Modified: trunk/system/src/main/java/org/jboss/system/server/profileservice/repository/AutoUnmounter.java
===================================================================
--- trunk/system/src/main/java/org/jboss/system/server/profileservice/repository/AutoUnmounter.java	2010-04-12 08:39:19 UTC (rev 103813)
+++ trunk/system/src/main/java/org/jboss/system/server/profileservice/repository/AutoUnmounter.java	2010-04-12 09:58:14 UTC (rev 103814)
@@ -60,7 +60,8 @@
    VirtualFile backup(String profileName, String name, VirtualFile original) throws IOException
    {
       File realFile = original.getPhysicalFile();
-      VirtualFile backup = originals.getChild(profileName).getChild(realFile.getName());
+      String hash = Integer.toHexString(realFile.toURI().hashCode());
+      VirtualFile backup = originals.getChild(profileName).getChild(hash + realFile.getName());
       Closeable closeable = VFS.mountReal(realFile, backup);
       mounts.put(name, closeable);
       return backup;




More information about the jboss-cvs-commits mailing list