Ignore:
Timestamp:
2014-10-08T20:20:05+13:00 (10 years ago)
Author:
ak19
Message:

Non-crucial commit, but I believe it may still be better to waitFor() the ant stop/start Process to finish before continuing to call other code.

File:
1 edited

Legend:

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

    r29238 r29356  
    743743            } else {
    744744                p = Runtime.getRuntime().exec(new String[]{"/bin/bash", "-c", "ant stop -f \"" + Configuration.gsdl3_src_path + File.separator + "build.xml\""});
     745            }
     746            if(p != null && p.waitFor() == 0) {
     747                DebugStream.println("********** SUCCESSFULLY stopped THE GS3 SERVER ON EXIT");
     748            }
     749            else {
     750                System.err.println("********** FAILED TO SUCCESSFULLY stop THE GS3 SERVER ON EXIT");
     751                //throw new Exception ("Failed to successfully stop the GS3 server on exit.");
    745752            }
    746753            } catch(Exception e) {
Note: See TracChangeset for help on using the changeset viewer.