org.objectweb.easybeans.ant.archive.info
Class ArchiveInfo

java.lang.Object
  extended by org.objectweb.easybeans.ant.archive.info.ArchiveInfo
Direct Known Subclasses:
ClientInfo, EarInfo, EjbInfo, WarInfo

public class ArchiveInfo
extends java.lang.Object

Class that holds information about an archive.

Author:
Florent Benoit

Field Summary
private  java.io.File dd
          Reference to the standard deployment descriptor.
private  java.io.File dest
          Full path to the archive.
private  boolean exploded
          Exploded mode or not ? (default = file).
private  java.util.List<org.apache.tools.ant.types.FileSet> fileSetList
          List of fileset used to add files.
private  java.io.File persistenceDD
          Reference to the persistence deployment descriptor.
 
Constructor Summary
ArchiveInfo()
          Default constructor.
 
Method Summary
 void addFileSet(org.apache.tools.ant.types.FileSet fileSet)
          Add the given fileset to the list of existing fileset.
 java.io.File getDd()
          Gets the reference to the deployment descriptor.
 java.io.File getDest()
          Gets the path to the archive that will be built.
 java.util.List<org.apache.tools.ant.types.FileSet> getFileSetList()
          Gets the list of fileset to include in the archive.
 java.io.File getPersistenceDD()
          Gets the reference to the persistence deployment descriptor.
 boolean isExploded()
          Gets the state : exploded mode or not ?
 void setDD(java.io.File dd)
          Sets the reference to the deployment descriptor.
 void setDest(java.io.File dest)
          Sets the path to the archive that will be built.
 void setExploded(boolean exploded)
          Sets the exploded mode to true or false.
 void setPersistenceDD(java.io.File persistenceDD)
          Sets the reference to the persistence deployment descriptor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dd

private java.io.File dd
Reference to the standard deployment descriptor.


persistenceDD

private java.io.File persistenceDD
Reference to the persistence deployment descriptor.


dest

private java.io.File dest
Full path to the archive.


fileSetList

private java.util.List<org.apache.tools.ant.types.FileSet> fileSetList
List of fileset used to add files.


exploded

private boolean exploded
Exploded mode or not ? (default = file).

Constructor Detail

ArchiveInfo

public ArchiveInfo()
Default constructor.

Method Detail

addFileSet

public void addFileSet(org.apache.tools.ant.types.FileSet fileSet)
Add the given fileset to the list of existing fileset.

Parameters:
fileSet - the fileset to add.

getFileSetList

public java.util.List<org.apache.tools.ant.types.FileSet> getFileSetList()
Gets the list of fileset to include in the archive.

Returns:
the list of fileset to include in the archive.

setDD

public void setDD(java.io.File dd)
Sets the reference to the deployment descriptor.

Parameters:
dd - the given deployment descriptor.

getDd

public java.io.File getDd()
Gets the reference to the deployment descriptor.

Returns:
the standard deployment descriptor.

setPersistenceDD

public void setPersistenceDD(java.io.File persistenceDD)
Sets the reference to the persistence deployment descriptor.

Parameters:
persistenceDD - the given persistence deployment descriptor.

getPersistenceDD

public java.io.File getPersistenceDD()
Gets the reference to the persistence deployment descriptor.

Returns:
the persistence deployment descriptor.

setDest

public void setDest(java.io.File dest)
Sets the path to the archive that will be built.

Parameters:
dest - the reference to resulting archive path.

getDest

public java.io.File getDest()
Gets the path to the archive that will be built.

Returns:
the reference to resulting archive path.

setExploded

public void setExploded(boolean exploded)
Sets the exploded mode to true or false.

Parameters:
exploded - boolean true/false

isExploded

public boolean isExploded()
Gets the state : exploded mode or not ?

Returns:
the state : exploded mode or not ?