|
GraphLab Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgraphlab.plugins.automaticupdator.net.interdirected.autoupdate.AntLauncher
public class AntLauncher
AntLauncher This is basically a copy of org.apache.tools.ant.launch.Launcher. I needed the run method to be public, and I needed the parameters to be assigned in the instantiation of the class instead. This just seemed to make more sense to me than statically running the MAIN from the original Launcher, or executing it as an exec from a batch file.
org.apache.tools.ant.launch.Launcher
Constructor Summary | |
---|---|
AntLauncher()
|
Method Summary | |
---|---|
void |
AppendArgs(java.lang.String add_argument)
AppendArgs This method is used to add arguments to the arguments array used in ANT. |
void |
AppendArgs(java.lang.String add_argument,
java.lang.String add_value)
AppendArgs This is a shortcut to the AppendArgs(String) method in case you have a parameter/value pair that need to be added. |
java.lang.String |
GetAntLocation()
|
void |
ResetArgs()
ResetArgs This method resets the arguments array to a null value. |
java.io.BufferedReader |
run()
run This method is used to create a new Java JVM to handle org.apache.tools.ant.launch.Launcher and capture standard out and redirect it to the command line. |
void |
SetAntLocation(java.lang.String antlocation)
|
void |
SetBuildFile(java.lang.String buildfile)
|
void |
SetClassPath(java.lang.String classpath)
|
void |
SetListenerClass(java.lang.String listener)
SetListenerClass sets the listener class file for the ANT build. |
void |
SetRunDirectory(java.lang.String run_dir)
SetRunDirectory is used to set the base run directory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AntLauncher()
Method Detail |
---|
public void AppendArgs(java.lang.String add_argument)
add_argument
- Argument to add to the arguments array.public void AppendArgs(java.lang.String add_argument, java.lang.String add_value)
add_argument
- add_value
- public void ResetArgs()
public void SetRunDirectory(java.lang.String run_dir)
run_dir
- The directory that ANT should launch from.public void SetListenerClass(java.lang.String listener)
listener
- A String with the name of the listening class.public void SetBuildFile(java.lang.String buildfile)
public void SetAntLocation(java.lang.String antlocation)
public java.lang.String GetAntLocation()
public void SetClassPath(java.lang.String classpath)
public java.io.BufferedReader run() throws java.lang.Exception
java.lang.Exception
|
GraphLab Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |