org.jboss.ant.taskdefs.server
Class StopServerTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.jboss.ant.taskdefs.server.StopServerTask
All Implemented Interfaces:
Cloneable

public class StopServerTask
extends org.apache.tools.ant.Task

A StopServerTask.

Version:
$Revision: 80346 $
Author:
Ryan Campbell

Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
StopServerTask()
           
 
Method Summary
 void execute()
          Stop the server.
 void setFailOnError(boolean flag)
          Set failonerror to fail build rather than only log the error.
 void setIgnoreErrors(boolean flag)
          Set ignoreerrors to silently ignore server shutdown errors.
 void setName(String name)
          Set the name.
 void stopServer()
           
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StopServerTask

public StopServerTask()
Method Detail

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Stop the server.

Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException

stopServer

public void stopServer()
                throws org.apache.tools.ant.BuildException
Throws:
org.apache.tools.ant.BuildException

setName

public void setName(String name)
Set the name.

Parameters:
name - The name to set.

setFailOnError

public void setFailOnError(boolean flag)
Set failonerror to fail build rather than only log the error.

Parameters:
failonerror - Choice to set.

setIgnoreErrors

public void setIgnoreErrors(boolean flag)
Set ignoreerrors to silently ignore server shutdown errors.

Parameters:
ignoreerrors - Choice to set.


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.