org.objectweb.jonas.ant.jonasbase
Class XMLSerializerTask

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

public class XMLSerializerTask
extends JTask
implements BaseTaskItf

Allow to serialize a XML DOM structure

Author:
Philippe Coq

Field Summary
 
Fields inherited from class org.objectweb.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
XMLSerializerTask()
          Default constructor
 
Method Summary
 void execute()
          Execute this task
 void setXmlDoc(org.w3c.dom.Document xmlDoc)
          Set the xml document to serialize
 void setXmlFileName(java.lang.String fileName)
          Set the xml filename
 
Methods inherited from class org.objectweb.jonas.ant.jonasbase.JTask
changeValueForKey, changeValueForKey, getConfigurationFile, getDestDir, getLogInfo, setConfigurationFile, setDestDir, setLogInfo, writePropsToFile
 
Methods inherited from class org.objectweb.jonas.ant.BootstrapTask
createClasspath, getBootstraptask, getCatalinaHome, getDomainName, getJettyHome, getJonasRoot, 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.objectweb.jonas.ant.jonasbase.BaseTaskItf
getLogInfo, setConfigurationFile, setDestDir, setJonasRoot, setLogInfo
 

Constructor Detail

XMLSerializerTask

public XMLSerializerTask()
Default constructor

Method Detail

setXmlDoc

public void setXmlDoc(org.w3c.dom.Document xmlDoc)
Set the xml document to serialize

Parameters:
xmlDoc - xml document

setXmlFileName

public void setXmlFileName(java.lang.String fileName)
Set the xml filename

Parameters:
fileName - xml filename

execute

public void execute()
Execute this task

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