Changeset 18159

Show
Ignore:
Timestamp:
09.12.2008 13:09:31 (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/MetadataStats.java

    r18146 r18159  
    123123     
    124124    if(System.getProperty("os.name").toLowerCase().indexOf("windows")!=-1){ 
    125         gsdl3Home = gsdl3Home.replaceAll("\\", "/"); 
     125        gsdl3Home = gsdl3Home.replaceAll("\\\\", "/"); 
    126126        os = "windows"; 
    127127    } 
    128128    String metadataSetHome = gspath.removeLastLink(gsdl3Home)+fileSeparator+"gli"+fileSeparator+"metadata"; 
    129129    if(os.equals("windows")){ 
    130         metadataSetHome = metadataSetHome.replaceAll("/", "\\"); 
     130        metadataSetHome = metadataSetHome.replaceAll("/", "\\\\"); 
    131131    } 
    132132    File metadata_directory = new File(metadataSetHome);