Changeset 21994


Ignore:
Timestamp:
2010-04-29T15:35:37+12:00 (14 years ago)
Author:
sjm84
Message:

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

File:
1 edited

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