Ignore:
Timestamp:
2013-07-12T17:10:14+12:00 (11 years ago)
Author:
davidb
Message:

Class extended to include support for storing properties that would be defined when an 'ant' task is run. Introduced to help support Greenstone running off a read-only medium, such as a DVD

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/util/RunAnt.java

    r22085 r27826  
    55public class RunAnt extends RunTarget
    66{
    7     public RunAnt()
     7    String opt_cmd_args = "";
     8
     9    public RunAnt(String opt_args)
    810    {
    911    super();
     12
     13    if (opt_args!=null) {
     14        opt_cmd_args = opt_args + " ";
     15    }
    1016
    1117    targetSuccess  = "BUILD SUCCESSFUL";
     
    1319    targetFinished = "Total time";
    1420    }
     21
     22    public RunAnt()
     23    {
     24    this(null);
     25    }
     26
    1527   
    1628    public void setTargetCmd(String target)
     
    1830    String osName = System.getProperty("os.name");
    1931        if (osName.startsWith("Windows")) {
    20         targetCmd = "ant.bat " + target;
     32        targetCmd = "ant.bat " + opt_cmd_args + target;
    2133    } else {
    22         targetCmd = "ant " + target;
     34        targetCmd = "ant " + opt_cmd_args + target;
    2335    }
    2436    }
Note: See TracChangeset for help on using the changeset viewer.