Changeset 24238 for main/trunk/gli


Ignore:
Timestamp:
2011-07-06T15:32:04+12:00 (13 years ago)
Author:
sjm84
Message:

Fixed a few problems with Tomcat auto-starting when GLI starts on Linux

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/src/org/greenstone/gatherer/Gatherer.java

    r24232 r24238  
    15751575            {
    15761576                String shellCommand = null;
     1577                Process p = null;
    15771578                if (Utility.isWindows())
    15781579                {
    1579                     shellCommand = "cmd /C";
     1580                    p = Runtime.getRuntime().exec("cmd /C \"cd " + _gsdl_path + File.separator + ".. && ant start\"\"");   
    15801581                }
    15811582                else
    15821583                {
    1583                     shellCommand = "bash -c";
    1584                 }
    1585                
    1586                 Process p = Runtime.getRuntime().exec(shellCommand + " \"cd " + _gsdl_path + File.separator + ".. && ant start\"");
     1584                    p = Runtime.getRuntime().exec(new String[]{"/bin/bash", "-c", "ant restart -f \"" + _gsdl_path + ".." + File.separator + "build.xml\""});
     1585                }
    15871586            }
    15881587            catch(Exception ex)
Note: See TracChangeset for help on using the changeset viewer.