org.jboss.ant.taskdefs.server
Class ConfigManagerTask

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

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

A ConfigManagerTask. Delegates to the Server manager.

Version:
$Revision: 79974 $
Author:
Ryan Campbell

Field Summary
protected static String MANAGER_REF
          The key for the project reference
 
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
ConfigManagerTask()
          Create a new ConfigManagerTask.
 
Method Summary
 void addServer(org.jboss.jbossas.servermanager.Server server)
          Add a server.
 void execute()
          Create a server manager using the specified configuration.
protected static ClassLoader getClassLoader()
          Get Server Manager's ClassLoader.
protected static org.jboss.jbossas.servermanager.ServerManager getServerManager(org.apache.tools.ant.Project project)
          Get Project's server manager.
 void setJavaHome(String javaHome)
          JAVA_HOME to start jboss with.
 void setJbossHome(String jbossHome)
          JBoss dist to start.
 void setJvm(String jvm)
          JVM command to use default is "java"
 void setUdpGroup(String udpGroup)
          The UDP group to pass to org.jboss.Main using the -u option.
 
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
 

Field Detail

MANAGER_REF

protected static final String MANAGER_REF
The key for the project reference

See Also:
Constant Field Values
Constructor Detail

ConfigManagerTask

public ConfigManagerTask()
Create a new ConfigManagerTask.

Method Detail

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Create a server manager using the specified configuration.

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

getServerManager

protected static org.jboss.jbossas.servermanager.ServerManager getServerManager(org.apache.tools.ant.Project project)
Get Project's server manager.

Returns:
the server manager

getClassLoader

protected static ClassLoader getClassLoader()
Get Server Manager's ClassLoader.

Returns:
the class loader aware of server manager dependencies

addServer

public void addServer(org.jboss.jbossas.servermanager.Server server)
Add a server.

Parameters:
server - the server

setJavaHome

public void setJavaHome(String javaHome)
JAVA_HOME to start jboss with.

Parameters:
javaHome -

setJbossHome

public void setJbossHome(String jbossHome)
JBoss dist to start.

Parameters:
jbossHome -

setJvm

public void setJvm(String jvm)
JVM command to use default is "java"

Parameters:
jvm -

setUdpGroup

public void setUdpGroup(String udpGroup)
The UDP group to pass to org.jboss.Main using the -u option.

Parameters:
udpGroup - the udp group


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