org.ow2.jonas.ant
Class ServerDeployDeprecated

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.ow2.jonas.ant.AbstractAntDeprecated
              extended by org.ow2.jonas.ant.ServerDeployDeprecated
All Implemented Interfaces:
Cloneable

public class ServerDeployDeprecated
extends AbstractAntDeprecated

Class only used for compatibility with previous version of JOnAS

Author:
Jeremy Cazaux

Field Summary
 
Fields inherited from class org.ow2.jonas.ant.AbstractAntDeprecated
logger
 
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
ServerDeployDeprecated()
           
 
Method Summary
 Object createGeneric()
          Creates a generic deployment tool.
 Object createJonas()
          Creates a JOnAS deployment tool, for deployment to JOnAS servers.
 Object createWeblogic()
          Creates a WebLogic deployment tool, for deployment to WebLogic servers.
 void setAction(String action)
          The action to be performed, usually "deploy"; required.
 void setSource(File source)
          The filename of the component to be deployed; optional depending upon the tool and the action.
 
Methods inherited from class org.ow2.jonas.ant.AbstractAntDeprecated
deprecated
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, execute, 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

ServerDeployDeprecated

public ServerDeployDeprecated()
Method Detail

setSource

public void setSource(File source)
               throws Exception
The filename of the component to be deployed; optional depending upon the tool and the action.

Parameters:
source - String representing the "source" attribute.
Throws:
Exception

setAction

public void setAction(String action)
               throws Exception
The action to be performed, usually "deploy"; required. Some tools support additional actions, such as "delete", "list", "undeploy", "update"...

Parameters:
action - A String representing the "action" attribute.
Throws:
Exception

createGeneric

public Object createGeneric()
                     throws Exception
Creates a generic deployment tool.

Ant calls this method on creation to handle embedded "generic" elements in the ServerDeploy task.

Throws:
Exception

createWeblogic

public Object createWeblogic()
                      throws Exception
Creates a WebLogic deployment tool, for deployment to WebLogic servers.

Ant calls this method on creation to handle embedded "weblogic" elements in the ServerDeploy task.

Throws:
Exception

createJonas

public Object createJonas()
                   throws Exception
Creates a JOnAS deployment tool, for deployment to JOnAS servers.

Ant calls this method on creation to handle embedded "jonas" elements in the ServerDeploy task.

Throws:
Exception


Copyright © 2013 OW2 Consortium. All Rights Reserved.