[jboss-cvs] JBossAS SVN: r77307 - 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 Aug 21 08:25:27 EDT 2008
Author: alesj
Date: 2008-08-21 08:25:27 -0400 (Thu, 21 Aug 2008)
New Revision: 77307
Modified:
trunk/system/src/main/org/jboss/system/server/profileservice/repository/SerializableDeploymentRepository.java
Log:
Use file's name as repositoryName.
Modified: trunk/system/src/main/org/jboss/system/server/profileservice/repository/SerializableDeploymentRepository.java
===================================================================
--- trunk/system/src/main/org/jboss/system/server/profileservice/repository/SerializableDeploymentRepository.java 2008-08-21 12:25:19 UTC (rev 77306)
+++ trunk/system/src/main/org/jboss/system/server/profileservice/repository/SerializableDeploymentRepository.java 2008-08-21 12:25:27 UTC (rev 77307)
@@ -250,14 +250,7 @@
fos.flush();
// Get the vfs uri for the content as the repository name
VirtualFile contentVF = VFS.getVirtualFile(contentRoot.toURI(), name);
- try
- {
- repositoryName = contentVF.toURI().toString();
- }
- catch (URISyntaxException e)
- {
- log.error("Should not happen", e);
- }
+ repositoryName = contentVF.getName();
}
finally
{
More information about the jboss-cvs-commits
mailing list