From b904b3ac0bcaec6f8fd52c43d505772b7794e090 Mon Sep 17 00:00:00 2001 From: Steve Loughran Date: Tue, 20 Nov 2001 06:53:06 +0000 Subject: [PATCH] Pulled the stuff on system.exit, because that is caught, and left a 'fork if things go wierd' message to handle the other cases :-) git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269968 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/CoreTasks/java.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/manual/CoreTasks/java.html b/docs/manual/CoreTasks/java.html index 4b5684596..61d34e9a9 100644 --- a/docs/manual/CoreTasks/java.html +++ b/docs/manual/CoreTasks/java.html @@ -11,10 +11,9 @@

Description

Executes a Java class within the running (Ant) VM or forks another VM if specified.

-

Be careful that the executed class doesn't call System.exit(), because it -will terminate the VM and thus Ant. In case this happens, it's highly suggested -that you set the fork attribute so that System.exit() stops the other VM and not -the one that is currently running Ant.

+

+If odd things go wrong when you run this task, set fork="true" to use a new +JVM.

Parameters

@@ -29,7 +28,8 @@ the one that is currently running Ant.

- +
jarthe location of the jar file to execute (must have a Main-Class entry in the manifest). Fork must be set to true if this option is selected.the location of the jar file to execute (must have a + Main-Class entry in the manifest). Fork must be set to true if this option is selected. Either jar or classname