org.ow2.jonas.ant.jonasbase
Class Mail

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.ow2.jonas.ant.BootstrapTask
              extended by org.ow2.jonas.ant.jonasbase.JTask
                  extended by org.ow2.jonas.ant.jonasbase.Mail
All Implemented Interfaces:
BaseTaskItf

public class Mail
extends JTask
implements BaseTaskItf

Allow to create mail factory.

Author:
Florent Benoit

Field Summary
 
Fields inherited from class org.ow2.jonas.ant.jonasbase.JTask
SEPARATORS
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
Mail()
           
 
Method Summary
 void execute()
          Execute this task.
 void setHost(String host)
          Sets the host of mail server.
 void setMailTo(String mailTo)
          Sets the recipient (MimePartDataSource).
 void setName(String name)
          Sets the name.
 void setSubject(String subject)
          Sets the subject (MimePartDataSource).
 void setType(String type)
          Sets the type of factory.
 
Methods inherited from class org.ow2.jonas.ant.jonasbase.JTask
changeValueForKey, changeValueForKey, getConfigurationFile, getDestDir, getLogInfo, setConfigurationFile, setDestDir, setLogInfo, writePropsToFile
 
Methods inherited from class org.ow2.jonas.ant.BootstrapTask
createClasspath, getBootstraptask, getBootstraptask, getDomainName, getJonasRoot, getMaven2Repository, getServerName, getTaskName, setCatalinaHome, setClasspath, setDomainName, setJettyHome, setJonasBase, setJonasRoot, setJvmopts, setServerName, setTaskName
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ow2.jonas.ant.jonasbase.BaseTaskItf
getLogInfo, setConfigurationFile, setDestDir, setJonasRoot, setLogInfo
 

Constructor Detail

Mail

public Mail()
Method Detail

setMailTo

public void setMailTo(String mailTo)
Sets the recipient (MimePartDataSource).

Parameters:
mailTo - recipient.

setName

public void setName(String name)
Sets the name.

Parameters:
name - name of the factory

setSubject

public void setSubject(String subject)
Sets the subject (MimePartDataSource).

Parameters:
subject - of the mail

setType

public void setType(String type)
Sets the type of factory.

Parameters:
type - of factory

setHost

public void setHost(String host)
Sets the host of mail server.

Parameters:
host - host of mail server

execute

public void execute()
Execute this task.

Specified by:
execute in interface BaseTaskItf
Overrides:
execute in class org.apache.tools.ant.Task


Copyright © 2010 OW2 Consortium. All Rights Reserved.