Changeset 18160

Show
Ignore:
Timestamp:
09.12.2008 13:11:40 (11 years ago)
Author:
cc108
Message:

change the snytax of regular expression

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • other-projects/trunk/greenstone3-extension/mat/src/org/greenstone/gsdl3_extension/mat/servlet/MetadataStats.java

    r18151 r18160  
    125125         
    126126        if(System.getProperty("os.name").toLowerCase().indexOf("windows")!=-1){ 
    127             gsdl3Home = gsdl3Home.replaceAll("\\", "/"); 
     127            gsdl3Home = gsdl3Home.replaceAll("\\\\", "/"); 
    128128            os = "windows"; 
    129129        } 
    130130        String metadataSetHome = gspath.removeLastLink(gsdl3Home)+fileSeparator+"gli"+fileSeparator+"metadata"; 
    131131        if(os.equals("windows")){ 
    132             metadataSetHome = metadataSetHome.replaceAll("/", "\\"); 
     132            metadataSetHome = metadataSetHome.replaceAll("/", "\\\\"); 
    133133        } 
    134134