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/util/GS3ServerThread.java

    r29222 r29356  
    7676            p = Runtime.getRuntime().exec(new String[]{"/bin/bash", "-c", "ant " + _ant_command + " -f \"" + _gsdl3_src_path + File.separator + "build.xml\""});
    7777            }
     78
     79        if (p != null) {
     80            int result = p.waitFor();
     81            if(result != 0) {
     82            System.err.println("**** Failed to successfully " + _ant_command + " the GS3 server.");
     83            }
     84        } else {
     85            System.err.println("**** Could not start the Process to " + _ant_command + " the GS3 server.");
     86        }
     87
    7888        }
    7989    catch(Exception ex)
Note: See TracChangeset for help on using the changeset viewer.