Changeset 21994

Show
Ignore:
Timestamp:
29.04.2010 15:35:37 (9 years ago)
Author:
sjm84
Message:

Allows "Windows" as a valid os name for <os> tags

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/admin/guiext/Command.java

    r21919 r21994  
    111111    public String getCommandForCurrentOS() 
    112112    { 
    113     String command = (String)_osCommands.get(System.getProperty("os.name")); 
     113    String currentos = System.getProperty("os.name"); 
     114 
     115    String command = (String)_osCommands.get(currentos); 
    114116    if(command != null){ 
    115117        return command; 
     118    } 
     119     
     120    if(currentos.contains("Windows")){ 
     121        command = (String)_osCommands.get("Windows"); 
     122         
     123        if(command != null){ 
     124        return command; 
     125        }    
    116126    } 
    117127    return (String)_osCommands.get("default");