Added fixup for windows.

This should really be handled within the avm.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3945 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jon Cox
2006-09-26 20:47:41 +00:00
parent 88acdd33fc
commit 32e1c7ddc5

View File

@@ -36,10 +36,11 @@ public List<PressRelease> getPressReleases(HttpServletRequest request, ServletCo
// //
String real_path = servletContext.getRealPath("/media/releases/content"); String real_path = servletContext.getRealPath("/media/releases/content");
// The avm_path to the root of the context will look soemthign like this: // The avm_path to the root of the context will look something like this:
// alfreco-guest-main:/appBase/avm_webapps/my_webapp // alfreco-guest-main:/appBase/avm_webapps/my_webapp
// //
String avm_path = real_path.substring( real_path.indexOf('$', real_path.indexOf('$') + 1) + 1 ); String avm_path = real_path.substring( real_path.indexOf('$', real_path.indexOf('$') + 1) + 1 );
avm_path = avm_path.replace('\\','/');
AVMRemote avm_remote = AVMFileDirContext.getAVMRemote(); AVMRemote avm_remote = AVMFileDirContext.getAVMRemote();
Map< String, AVMNodeDescriptor> entries = avm_remote.getDirectoryListing(-1, avm_path); Map< String, AVMNodeDescriptor> entries = avm_remote.getDirectoryListing(-1, avm_path);