org.ow2.jonas.ant
Class JOnASTaskDeprecated

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.JOnASTaskDeprecated
All Implemented Interfaces:
java.lang.Cloneable

public class JOnASTaskDeprecated
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
JOnASTaskDeprecated()
           
 
Method Summary
 java.lang.Object createClasspath()
          Adds to the classpath the class of the project.
 void setArch(java.lang.String arch)
          Set architecture
 void setCatalinaHome(java.lang.String catalinaHome)
          Deprecated.  
 void setCdDir(java.lang.String cdDir)
          Set the cluster daemon directory
 void setClasspath(org.apache.tools.ant.types.Path classpath)
          Set the classpath for this task.
 void setDestDirPrefix(java.lang.String destDirPrefix)
          Set the destination directory prefix
 void setDomainName(java.lang.String domainName)
          Set domainName.
 void setJettyHome(java.lang.String jettyHome)
          Deprecated.  
 void setJonasBase(java.io.File jonasBase)
          Set the JOnAS base directory.
 void setJonasRoot(java.io.File jonasRoot)
          Set the JOnAS root directory.
 void setJvmopts(java.lang.String jvmOpts)
          Set the additional args to pass to the JVM.
 void setMode(java.lang.String mode)
          Sets the mode for the server (start or stop).
 void setServerName(java.lang.String serverName)
          Set the name of the server.
 
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

JOnASTaskDeprecated

public JOnASTaskDeprecated()
Method Detail

setMode

public void setMode(java.lang.String mode)
             throws java.lang.Exception
Sets the mode for the server (start or stop).

Parameters:
mode - The mode to set.
Throws:
java.lang.Exception

setDomainName

public void setDomainName(java.lang.String domainName)
                   throws java.lang.Exception
Set domainName.

Parameters:
domainName - The domainName to set.
Throws:
java.lang.Exception

setDestDirPrefix

public void setDestDirPrefix(java.lang.String destDirPrefix)
                      throws java.lang.Exception
Set the destination directory prefix

Parameters:
destDirPrefix - the destination directory prefix
Throws:
java.lang.Exception

setCdDir

public void setCdDir(java.lang.String cdDir)
              throws java.lang.Exception
Set the cluster daemon directory

Parameters:
cdDir - the destination directory for the cluster daemon configuration
Throws:
java.lang.Exception

setArch

public void setArch(java.lang.String arch)
             throws java.lang.Exception
Set architecture

Parameters:
arch - the architecture
Throws:
java.lang.Exception

setServerName

public void setServerName(java.lang.String serverName)
                   throws java.lang.Exception
Set the name of the server.

Parameters:
serverName - The serverName to set.
Throws:
java.lang.Exception

setCatalinaHome

@Deprecated
public void setCatalinaHome(java.lang.String catalinaHome)
                     throws java.lang.Exception
Deprecated. 

Set catalina Home.

Parameters:
catalinaHome - The catalinaHome to set.
Throws:
java.lang.Exception

setJettyHome

@Deprecated
public void setJettyHome(java.lang.String jettyHome)
                  throws java.lang.Exception
Deprecated. 

Set jetty home path.

Parameters:
jettyHome - The jettyHome to set.
Throws:
java.lang.Exception

setJonasRoot

public void setJonasRoot(java.io.File jonasRoot)
                  throws java.lang.Exception
Set the JOnAS root directory.

Parameters:
jonasRoot - the JOnAS root directory.
Throws:
java.lang.Exception

setJonasBase

public void setJonasBase(java.io.File jonasBase)
                  throws java.lang.Exception
Set the JOnAS base directory.

Parameters:
jonasBase - the JOnAS base directory.
Throws:
java.lang.Exception

setJvmopts

public void setJvmopts(java.lang.String jvmOpts)
                throws java.lang.Exception
Set the additional args to pass to the JVM.

Parameters:
jvmOpts - the options.
Throws:
java.lang.Exception

createClasspath

public java.lang.Object createClasspath()
                                 throws java.lang.Exception
Adds to the classpath the class of the project.

Returns:
the path to be configured.
Throws:
java.lang.Exception

setClasspath

public void setClasspath(org.apache.tools.ant.types.Path classpath)
                  throws java.lang.Exception
Set the classpath for this task.

Parameters:
classpath - the classpath to use.
Throws:
java.lang.Exception


Copyright © 2012 OW2 Consortium. All Rights Reserved.