| Modifier and Type | Field and Description |
|---|---|
| private volatile Throwable | |
| private Path | |
| private boolean | |
| private Commandline | |
| private Method | |
| private Permissions | |
| private CommandlineJava. | |
| private Thread | |
| private volatile boolean | |
| private Long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public int | Returns: the exit status of the subprocess.the ProjectComponent to use for logging, etc. pc)Run the Java command in a separate VM, this does not give you the full flexibility of the Java task, but may be enough for simple needs. |
| public synchronized boolean | Returns: true if the process was killed, false otherwise.Get whether the process was killed. |
| public void | |
| public void | setClasspath(Path
an Ant Path object containing the classpath. p)Set the classpath to be used when running the Java class. |
| public void | setJavaCommand(Commandline
the classname and arguments in a Commandline. javaCommand)Set the Java "command" for this ExecuteJava. |
| public void | setOutput(PrintStream
the PrintStream where output should be sent. out)
Deprecated
since 1.4.x.
manage output at the task level.
Set the stream to which all output (System.out as well as System.err)
will be written.
|
| public void | setPermissions(Permissions
the Permissions to use. permissions)Set the permissions for the application run. |
| public void | setSystemProperties(CommandlineJava.
CommandlineJava system properties. sSet the system properties to use when running the Java class. |
| public void | |
| public static void | setupCommandLineForVMS(Execute
the Execute instance to alter. exe, String[] the command-line. command)On VMS platform, we need to create a special java options file containing the arguments and classpath for the java command. |
| public synchronized void | timeoutOccured(Watchdog
the responsible Watchdog. w)Implements org. |
| caught | back to summary |
|---|---|
| private volatile Throwable caught | |
| classpath | back to summary |
|---|---|
| private Path classpath | |
| done | back to summary |
|---|---|
| private boolean done | |
| javaCommand | back to summary |
|---|---|
| private Commandline javaCommand | |
| main | back to summary |
|---|---|
| private Method main | |
| perm | back to summary |
|---|---|
| private Permissions perm | |
| sysProperties | back to summary |
|---|---|
| private CommandlineJava. | |
| thread | back to summary |
|---|---|
| private Thread thread | |
| timedOut | back to summary |
|---|---|
| private volatile boolean timedOut | |
| timeout | back to summary |
|---|---|
| private Long timeout | |
| ExecuteJava | back to summary |
|---|---|
| public ExecuteJava() | |
| execute | back to summary |
|---|---|
| public void execute(Project project) throws BuildException Execute the Java class against the specified Ant Project.
| |
| fork | back to summary |
|---|---|
| public int fork(ProjectComponent pc) throws BuildException Run the Java command in a separate VM, this does not give you the full flexibility of the Java task, but may be enough for simple needs.
| |
| killedProcess | back to summary |
|---|---|
| public synchronized boolean killedProcess() Get whether the process was killed.
| |
| run | back to summary |
|---|---|
| public void run() Implements java. Run this ExecuteJava in a Thread.
| |
| setClasspath | back to summary |
|---|---|
| public void setClasspath(Path p) Set the classpath to be used when running the Java class.
| |
| setJavaCommand | back to summary |
|---|---|
| public void setJavaCommand(Commandline javaCommand) Set the Java "command" for this ExecuteJava.
| |
| setOutput | back to summary |
|---|---|
| public void setOutput(PrintStream out)
Deprecated since 1.4.x. manage output at the task level. Set the stream to which all output (System.out as well as System.err) will be written.
| |
| setPermissions | back to summary |
|---|---|
| public void setPermissions(Permissions permissions) Set the permissions for the application run.
| |
| setSystemProperties | back to summary |
|---|---|
| public void setSystemProperties(CommandlineJava. Set the system properties to use when running the Java class.
| |
| setTimeout | back to summary |
|---|---|
| public void setTimeout(Long timeout) Set the timeout for this ExecuteJava.
| |
| setupCommandLineForVMS | back to summary |
|---|---|
| public static void setupCommandLineForVMS(Execute exe, String[] command) On VMS platform, we need to create a special java options file containing the arguments and classpath for the java command. The special file is supported by the "-V" switch on the VMS JVM. | |
| timeoutOccured | back to summary |
|---|---|
| public synchronized void timeoutOccured(Watchdog w) Implements org. Mark timeout as having occurred. | |