org.objectweb.easybeans.ant.archive.exploded
Class AbsExplodedArchive

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.objectweb.easybeans.ant.archive.exploded.AbsExplodedArchive
All Implemented Interfaces:
java.lang.Cloneable, IArchive
Direct Known Subclasses:
EarExploded, EjbExploded, WarExploded

public abstract class AbsExplodedArchive
extends org.apache.tools.ant.Task
implements IArchive

Abstract task for creating exploded archive.

Author:
Florent Benoit

Field Summary
private  ArchiveInfo archiveInfo
          Reference to the archive info object.
private static java.lang.String PERSISTENCE_DEPLOYMENT_DESCRIPTOR
          Path to the Persistence deployment descriptor.
 
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
AbsExplodedArchive(org.apache.tools.ant.Project p)
          Creates an archive for the given project.
 
Method Summary
 void addDD()
          Add the standard deployment descriptor in the archive.
 void execute()
          Execute the task.
abstract  java.lang.String getDDStandardName()
          Gets the path to the standard deployment descriptor.
 void setArchiveInfo(ArchiveInfo archiveInfo)
          Sets the information about an archive.
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, 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
 

Field Detail

PERSISTENCE_DEPLOYMENT_DESCRIPTOR

private static final java.lang.String PERSISTENCE_DEPLOYMENT_DESCRIPTOR
Path to the Persistence deployment descriptor.

See Also:
Constant Field Values

archiveInfo

private ArchiveInfo archiveInfo
Reference to the archive info object.

Constructor Detail

AbsExplodedArchive

public AbsExplodedArchive(org.apache.tools.ant.Project p)
Creates an archive for the given project.

Parameters:
p - the given project
Method Detail

getDDStandardName

public abstract java.lang.String getDDStandardName()
Gets the path to the standard deployment descriptor.

Returns:
the path to the standard deployment descriptor.

setArchiveInfo

public void setArchiveInfo(ArchiveInfo archiveInfo)
Sets the information about an archive.

Specified by:
setArchiveInfo in interface IArchive
Parameters:
archiveInfo - the object that holds data information.

addDD

public void addDD()
Add the standard deployment descriptor in the archive.


execute

public void execute()
Execute the task.

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