Changeset 18157

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

change the snytax of regular expression

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/src/java/org/greenstone/admin/gui/ExtPane.java

    r18141 r18157  
    111111    public ExtPane() { 
    112112     
    113     //System.out.println("start"); 
     113 
    114114    String gsdl3Home = get_GSDL3HOME(); 
    115     //file_location ="/research/cc108/greenstone3Project/ext/extension_project_list.xml"; 
     115 
    116116    file_location = gsdl3Home+fileSeparator+"ext"+fileSeparator+"extension_project_list.xml"; 
    117     //file_lcoation =  = "/research/cc108/greenstone3Project/ext/extension_project_list.xml 
     117 
     118 
    118119    // create all the necessary panes 
    119120    control_pane = new JPanel(); 
     
    350351        String os = "linux"; 
    351352         
    352         if(fileSeparator.equals("\\")){ 
    353             gsdl3Home = gsdl3Home.replaceAll("\\", "/"); 
     353        if(System.getProperty("os.name").toLowerCase().indexOf("windows")!=-1){ 
     354            gsdl3Home = gsdl3Home.replaceAll("\\\\", "/"); 
    354355            os = "windows"; 
    355356        } 
    356357         
     358 
    357359        gsdl3Home = gspath.removeLastLink(gsdl3Home); 
    358360         
    359361        if(os.equals("windows")){ 
    360             gsdl3Home = gsdl3Home.replaceAll("/", "\\"); 
     362            gsdl3Home = gsdl3Home.replaceAll("/", "\\\\"); 
    361363        } 
    362364        return gsdl3Home;