net.sweetohm.ant.server.command
Class Exit

java.lang.Object
  extended by net.sweetohm.ant.server.command.Exit

public class Exit
extends java.lang.Object

Exit command, to shutdown the server. To do so, an InterruptedException is thrown and catched by the server loop to release the main thread of Ant (and terminate the build, that is the server mode).

Version:
1.0
Author:
Michel CASABIANCA

Constructor Summary
Exit()
           
 
Method Summary
static void execute(java.util.List args, org.apache.tools.ant.Project project, java.io.Writer out)
          Execute the exit command by throwing an InterruptedException.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Exit

public Exit()
Method Detail

execute

public static void execute(java.util.List args,
                           org.apache.tools.ant.Project project,
                           java.io.Writer out)
                    throws java.lang.InterruptedException
Execute the exit command by throwing an InterruptedException.

Parameters:
args - The command arguments as a List.
project - The Ant Project.
out - The Writer to print on.
Throws:
java.lang.InterruptedException - To stop the build process. This is normal!!!