Changeset 27826 for main/trunk/greenstone3/src/java/org/greenstone
- Timestamp:
- 2013-07-12T17:10:14+12:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/util/RunAnt.java
r22085 r27826 5 5 public class RunAnt extends RunTarget 6 6 { 7 public RunAnt() 7 String opt_cmd_args = ""; 8 9 public RunAnt(String opt_args) 8 10 { 9 11 super(); 12 13 if (opt_args!=null) { 14 opt_cmd_args = opt_args + " "; 15 } 10 16 11 17 targetSuccess = "BUILD SUCCESSFUL"; … … 13 19 targetFinished = "Total time"; 14 20 } 21 22 public RunAnt() 23 { 24 this(null); 25 } 26 15 27 16 28 public void setTargetCmd(String target) … … 18 30 String osName = System.getProperty("os.name"); 19 31 if (osName.startsWith("Windows")) { 20 targetCmd = "ant.bat " + target;32 targetCmd = "ant.bat " + opt_cmd_args + target; 21 33 } else { 22 targetCmd = "ant " + target;34 targetCmd = "ant " + opt_cmd_args + target; 23 35 } 24 36 }
Note:
See TracChangeset
for help on using the changeset viewer.