com.finalist.tools.ant.taskdefs
Class EarAutoLib

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended byorg.apache.tools.ant.taskdefs.MatchingTask
              extended byorg.apache.tools.ant.taskdefs.Zip
                  extended byorg.apache.tools.ant.taskdefs.Jar
                      extended byorg.apache.tools.ant.taskdefs.Ear
                          extended bycom.finalist.tools.ant.taskdefs.EarAutoLib
All Implemented Interfaces:
org.apache.tools.ant.types.selectors.SelectorContainer

public class EarAutoLib
extends org.apache.tools.ant.taskdefs.Ear

Extension to the regular ear task to include files specified in the libXmlFile.


Nested Class Summary
 
Nested classes inherited from class org.apache.tools.ant.taskdefs.Jar
org.apache.tools.ant.taskdefs.Jar.FilesetManifestConfig
 
Nested classes inherited from class org.apache.tools.ant.taskdefs.Zip
org.apache.tools.ant.taskdefs.Zip.ArchiveState, org.apache.tools.ant.taskdefs.Zip.Duplicate, org.apache.tools.ant.taskdefs.Zip.WhenEmpty
 
Field Summary
 java.io.File directory
          Directory which contains the library files.
 
Fields inherited from class org.apache.tools.ant.taskdefs.Zip
addedDirs, archiveType, duplicate, emptyBehavior, entries, zipFile
 
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask
fileset, useDefaultExcludes
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
EarAutoLib()
           
 
Method Summary
 void execute()
          Method called by ant to execute this task.
 void outXML(org.w3c.dom.Document doc, java.io.File outPutFile)
           
 void setAppServer(int appServer)
          Setter for the application server parameter 0 - not specified 1 - oracle
 void setAppxml(java.io.File appxml)
          Setter for property appXml.
 void setDoctypePublic(java.lang.String doctypePublic)
          Set the publi doctype for the Application xml dtd.
 void setDoctypeSystem(java.lang.String doctypeSystem)
          Set the system doctype for the Application xml dtd.
 void setLibdir(java.io.File directory)
          Setter for libDir property.
 void setLibXmlFile(java.io.File libXmlFile)
          Setter for property libXmlFile.
 void setProxyHost(java.lang.String proxyHost)
          Setter for property proxyHost.
 void setProxyPort(java.lang.String proxyPort)
          Setter for property proxyPort.
 
Methods inherited from class org.apache.tools.ant.taskdefs.Ear
addArchives, cleanUp, initZipOutputStream, setEarfile, zipFile
 
Methods inherited from class org.apache.tools.ant.taskdefs.Jar
addConfiguredManifest, addMetainf, createEmptyZip, finalizeZipOutputStream, getResourcesToAdd, reset, setIndex, setJarfile, setManifest, setManifestEncoding, setWhenempty, zipFile
 
Methods inherited from class org.apache.tools.ant.taskdefs.Zip
addFileset, addParentDirs, addResources, addZipfileset, addZipGroupFileset, getDestFile, getEncoding, grabResources, isAddingNewFiles, isCompress, isEmpty, isInUpdateMode, setBasedir, setCompress, setDestFile, setDuplicate, setEncoding, setFile, setFilesonly, setUpdate, setZipfile, zipDir
 
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask
addAnd, addContains, addCustom, addDate, addDepend, addDepth, addFilename, addMajority, addNone, addNot, addOr, addPresent, addSelector, addSize, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorFlush, handleErrorOutput, handleFlush, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

directory

public java.io.File directory
Directory which contains the library files. Default is lib.

Constructor Detail

EarAutoLib

public EarAutoLib()
Method Detail

setLibdir

public void setLibdir(java.io.File directory)
Setter for libDir property.

Parameters:
directory - Directory which contains the library files.

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Method called by ant to execute this task.

Throws:
org.apache.tools.ant.BuildException - Exception which is thrown to stop the build process and display an error message

outXML

public void outXML(org.w3c.dom.Document doc,
                   java.io.File outPutFile)
            throws javax.xml.transform.TransformerException,
                   java.io.IOException
Throws:
javax.xml.transform.TransformerException
java.io.IOException

setLibXmlFile

public void setLibXmlFile(java.io.File libXmlFile)
Setter for property libXmlFile.

Parameters:
libXmlFile - The lib file which specifies what files are to be checked out

setAppxml

public void setAppxml(java.io.File appxml)
Setter for property appXml.

Parameters:
appxml - the application.xml file.

setProxyHost

public void setProxyHost(java.lang.String proxyHost)
Setter for property proxyHost.

Parameters:
proxyHost - New value of property proxyHost.

setProxyPort

public void setProxyPort(java.lang.String proxyPort)
Setter for property proxyPort.

Parameters:
proxyPort - New value of property proxyPort.

setAppServer

public void setAppServer(int appServer)
Setter for the application server parameter 0 - not specified 1 - oracle

Parameters:
appServer - int representation for the appserver

setDoctypeSystem

public void setDoctypeSystem(java.lang.String doctypeSystem)
Set the system doctype for the Application xml dtd.

Parameters:
doctypeSystem -

setDoctypePublic

public void setDoctypePublic(java.lang.String doctypePublic)
Set the publi doctype for the Application xml dtd.

Parameters:
doctypePublic -


Copyright © 2003-2004 SourceForge. All Rights Reserved.