mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user