Changeset 18160 for other-projects


Ignore:
Timestamp:
12/09/08 13:11:40 (12 years ago)
Author:
cc108
Message:

change the snytax of regular expression

File:
1 edited

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       
Note: See TracChangeset for help on using the changeset viewer.