Changeset 24238
- Timestamp:
- 2011-07-06T15:32:04+12:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/src/org/greenstone/gatherer/Gatherer.java
r24232 r24238 1575 1575 { 1576 1576 String shellCommand = null; 1577 Process p = null; 1577 1578 if (Utility.isWindows()) 1578 1579 { 1579 shellCommand = "cmd /C";1580 p = Runtime.getRuntime().exec("cmd /C \"cd " + _gsdl_path + File.separator + ".. && ant start\"\""); 1580 1581 } 1581 1582 else 1582 1583 { 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 } 1587 1586 } 1588 1587 catch(Exception ex)
Note:
See TracChangeset
for help on using the changeset viewer.