Ignore:
Timestamp:
2011-08-10T18:54:49+12:00 (13 years ago)
Author:
ak19
Message:

Fixed bug in starting and stopping GS3 server on Windows.

File:
1 edited

Legend:

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

    r24358 r24388  
    373373                }
    374374                else {
    375                     GS3ServerThread thread = new GS3ServerThread(gsdl_path, "start");
     375                    GS3ServerThread thread = new GS3ServerThread(gsdl3_src_path, "restart");
    376376                    thread.start();
    377377                }
     
    715715            String shellCommand = null;
    716716            Process p = null;
    717             if (Utility.isWindows()) {             
    718                 p = Runtime.getRuntime().exec("cmd /C \"cd " + Configuration.gsdl_path + File.separator + ".. && ant stop\"\"");   
     717            if (Utility.isWindows()) {
     718                // cmd /C "cd "C:\path\to\greenstone3" && ant stop"
     719                p = Runtime.getRuntime().exec("cmd /C \"cd \"" + Configuration.gsdl3_src_path + File.separator + "\" && ant stop\"");   
    719720            } else {
    720                 p = Runtime.getRuntime().exec(new String[]{"/bin/bash", "-c", "ant stop -f \"" + Configuration.gsdl_path + ".." + File.separator + "build.xml\""});
     721                p = Runtime.getRuntime().exec(new String[]{"/bin/bash", "-c", "ant stop -f \"" + Configuration.gsdl3_src_path + File.separator + "build.xml\""});
    721722            }
    722723            } catch(Exception e) {
Note: See TracChangeset for help on using the changeset viewer.