org.apache.geronimo.plugin.packaging
Class PackageBuilder

java.lang.Object
  extended byorg.apache.geronimo.plugin.packaging.PackageBuilder

public class PackageBuilder
extends java.lang.Object

JellyBean that builds a Geronimo Configuration using the local Mavem infrastructure.

Version:
$Rev:385659 $ $Date: 2006-05-15 04:13:19 +0200 (Mon, 15 May 2006) $

Constructor Summary
PackageBuilder()
           
 
Method Summary
 void execute()
           
 java.lang.String getClassPath()
           
 java.lang.String getConfigurations()
           
 java.lang.String getConfigurationStoreClass()
           
 java.lang.String getDeployerName()
           
 java.util.Collection getDeploymentConfig()
           
 java.lang.String getEndorsedDirs()
           
 java.lang.String getExplicitResolutionLocation()
           
 java.lang.String getExtensionDirs()
           
 java.lang.String getLogLevel()
           
 java.lang.String getMainClass()
           
 java.lang.String getMainGBean()
           
 java.lang.String getMainMethod()
           
 java.io.File getModuleFile()
           
 java.io.File getPackageFile()
           
 java.io.File getPlanFile()
           
 java.io.File getRepository()
           
 java.lang.String getRepositoryClass()
           
 java.lang.String getTargetConfigurationStoreClass()
           
 java.io.File getTargetRepository()
           
 java.lang.String getTargetRepositoryClass()
           
 void setClassPath(java.lang.String classPath)
           
 void setConfigurations(java.lang.String configurations)
           
 void setConfigurationStoreClass(java.lang.String configurationStoreClass)
           
 void setDeployerName(java.lang.String deployerName)
          Set the name of the GBean that is the Deployer.
 void setDeploymentConfig(java.util.Collection deploymentConfigString)
          Set the id of the Configuration to use to perform the packaging.
 void setEndorsedDirs(java.lang.String endorsedDirs)
           
 void setExplicitResolutionLocation(java.lang.String explicitResolutionLocation)
           
 void setExtensionDirs(java.lang.String extensionDirs)
           
 void setLogLevel(java.lang.String logLevel)
           
 void setMainClass(java.lang.String mainClass)
          Set the name of the class containing the main method for a executable configuration.
 void setMainGBean(java.lang.String mainGBean)
           
 void setMainMethod(java.lang.String mainMethod)
           
 void setModuleFile(java.io.File moduleFile)
          Set the File that is the module being deployed.
 void setPackageFile(java.io.File packageFile)
          Set the File where the Configuration will be stored; normally the artifact being produced.
 void setPlanFile(java.io.File planFile)
          Set the File that is the deployment plan.
 void setRepository(java.io.File repository)
          Set the location of the Maven repository; typically ${maven.repo.local}
 void setRepositoryClass(java.lang.String repositoryClass)
           
 void setTargetConfigurationStoreClass(java.lang.String targetConfigurationStoreClass)
           
 void setTargetRepository(java.io.File targetRepository)
           
 void setTargetRepositoryClass(java.lang.String targetRepositoryClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PackageBuilder

public PackageBuilder()
Method Detail

getRepositoryClass

public java.lang.String getRepositoryClass()

setRepositoryClass

public void setRepositoryClass(java.lang.String repositoryClass)

getConfigurationStoreClass

public java.lang.String getConfigurationStoreClass()

setConfigurationStoreClass

public void setConfigurationStoreClass(java.lang.String configurationStoreClass)

getRepository

public java.io.File getRepository()

setRepository

public void setRepository(java.io.File repository)
Set the location of the Maven repository; typically ${maven.repo.local}

Parameters:
repository - the location of the Maven repository

getTargetRepositoryClass

public java.lang.String getTargetRepositoryClass()

setTargetRepositoryClass

public void setTargetRepositoryClass(java.lang.String targetRepositoryClass)

getTargetConfigurationStoreClass

public java.lang.String getTargetConfigurationStoreClass()

setTargetConfigurationStoreClass

public void setTargetConfigurationStoreClass(java.lang.String targetConfigurationStoreClass)

getTargetRepository

public java.io.File getTargetRepository()

setTargetRepository

public void setTargetRepository(java.io.File targetRepository)

getDeploymentConfig

public java.util.Collection getDeploymentConfig()

setDeploymentConfig

public void setDeploymentConfig(java.util.Collection deploymentConfigString)
Set the id of the Configuration to use to perform the packaging.

Parameters:
deploymentConfigString - comma-separated list of the ids of the Configurations performing the deployment

getDeployerName

public java.lang.String getDeployerName()

setDeployerName

public void setDeployerName(java.lang.String deployerName)
Set the name of the GBean that is the Deployer.

Parameters:
deployerName - the name of the Deployer GBean

getPlanFile

public java.io.File getPlanFile()

setPlanFile

public void setPlanFile(java.io.File planFile)
Set the File that is the deployment plan.

Parameters:
planFile - the deployment plan

getModuleFile

public java.io.File getModuleFile()

setModuleFile

public void setModuleFile(java.io.File moduleFile)
Set the File that is the module being deployed.

Parameters:
moduleFile - the module to deploy

getPackageFile

public java.io.File getPackageFile()

setPackageFile

public void setPackageFile(java.io.File packageFile)
Set the File where the Configuration will be stored; normally the artifact being produced.

Parameters:
packageFile - the package file to produce

getMainClass

public java.lang.String getMainClass()

setMainClass

public void setMainClass(java.lang.String mainClass)
Set the name of the class containing the main method for a executable configuration.

Parameters:
mainClass -

getMainGBean

public java.lang.String getMainGBean()

setMainGBean

public void setMainGBean(java.lang.String mainGBean)

getMainMethod

public java.lang.String getMainMethod()

setMainMethod

public void setMainMethod(java.lang.String mainMethod)

getConfigurations

public java.lang.String getConfigurations()

setConfigurations

public void setConfigurations(java.lang.String configurations)

getClassPath

public java.lang.String getClassPath()

setClassPath

public void setClassPath(java.lang.String classPath)

getEndorsedDirs

public java.lang.String getEndorsedDirs()

setEndorsedDirs

public void setEndorsedDirs(java.lang.String endorsedDirs)

getExtensionDirs

public java.lang.String getExtensionDirs()

setExtensionDirs

public void setExtensionDirs(java.lang.String extensionDirs)

getExplicitResolutionLocation

public java.lang.String getExplicitResolutionLocation()

setExplicitResolutionLocation

public void setExplicitResolutionLocation(java.lang.String explicitResolutionLocation)

getLogLevel

public java.lang.String getLogLevel()

setLogLevel

public void setLogLevel(java.lang.String logLevel)

execute

public void execute()
             throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © -2007 . All Rights Reserved.