public abstract class AbstractPackagingMojo extends AbstractBWArtifactMojo
This class defines locations of files produced by packaging phase which will be used by the deploy phase.
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
contact |
protected static java.lang.String |
deployedProjectNameProperty |
protected java.io.File |
deploymentDescriptor |
protected java.io.File |
deploymentDescriptorFinal |
protected static java.lang.String |
deploymentDescriptorFinalProperty |
protected static java.lang.String |
deploymentDescriptorProperty |
protected java.io.File |
deploymentGlobalVariables |
protected java.io.File |
deploymentGlobalVariablesCommon |
protected static java.lang.String |
deploymentGlobalVariablesCommonProperty |
protected static java.lang.String |
deploymentGlobalVariablesProperty |
protected java.io.File |
deploymentGlobalVariablesReference |
protected static java.lang.String |
deploymentGlobalVariablesReferenceProperty |
protected java.io.File |
deploymentServices |
protected java.io.File |
deploymentServicesCommon |
protected static java.lang.String |
deploymentServicesCommonProperty |
protected static java.lang.String |
deploymentServicesProperty |
protected java.io.File |
deploymentServicesReference |
protected static java.lang.String |
deploymentServicesReferenceProperty |
protected java.lang.String |
description |
protected static java.lang.String |
domainNameProperty |
protected static java.lang.String |
domainPasswordProperty |
protected static java.lang.String |
domainUsernameProperty |
protected Events |
events |
protected boolean |
filterProperties |
protected boolean |
ignoreCommonFiles |
protected boolean |
ignoreReferenceFiles |
protected org.apache.maven.shared.filtering.MavenResourcesFiltering |
mavenResourcesFiltering |
protected java.lang.String |
maxDeploymentRevision |
protected java.lang.String |
repoHttpExtraPropertyFile |
protected java.lang.String |
repoHttpPassword |
protected java.lang.String |
repoHttpServer |
protected java.lang.Integer |
repoHttpTimeout |
protected java.lang.String |
repoHttpUrl |
protected java.lang.String |
repoHttpUser |
protected java.lang.String |
repoLocalEncoding |
protected java.lang.String |
repoRvDaemon |
protected java.lang.Integer |
repoRvDiscoveryTimeout |
protected java.lang.String |
repoRvExtraPropertyFile |
protected java.lang.String |
repoRvNetwork |
protected java.lang.Integer |
repoRvOperationRetry |
protected java.lang.String |
repoRvPassword |
protected java.lang.String |
repoRvRegionalSubject |
protected java.lang.String |
repoRvServer |
protected java.lang.String |
repoRvService |
protected java.lang.Integer |
repoRvTimeout |
protected java.lang.String |
repoRvUser |
protected java.lang.String |
repoSelectInstance |
classifier, finalName, skipCompile, skipEARCompile, skipPackage, skipProjlibCompile, touchEARIfSkipped, touchFinalDeploymentDescriptorIfSkipped, touchProjlibIfSkipped, WARN_NO_ARTIFACT_ATTACHED
ALIASES_FILE, APPMANAGE_BINARY_NOTFOUND, buildLibDirectory, buildSrcDirectory, BWEAR_DEPLOY_TYPE, BWEAR_EXTENSION, BWEAR_TYPE, BWPROJECT_NOTFOUND, BWPROJECT_PREF_LIB_ERROR_MSG, dependenciesIgnored, DESIGNER_BINARY_NOTFOUND, DESIGNER5_PREFS, directory, DTL_FILE_NAME, FILE_ALIAS_PREFIX, FILE_ALIAS_PREFIX_ESCAPED, HAWK_BINARY_NOTFOUND, hawkDomain, hawkRvDaemon, hawkRvNetwork, hawkRvService, hawkSubscribeInterval, hawkSubscribeNumberOfRetry, hawkVersion, hideLibraryResources, JAR_EXTENSION, JAR_TYPE, mavenPropertyPattern, outputDirectory, packageDirectory, POM_EXTENSION, POM_TYPE, projectDirectory, PROJLIB_EXTENSION, PROJLIB_TYPE, PROPERTIES_EXTENSION, session, SKIPPING, sourceEncoding, testDirectory, testLibDirectory, testSrcDirectory, TIBCO_ALIAS_PREFIX, TIBCO_HOME_DIR, tibcoAppManagePath, tibcoAppManageTRAPath, tibcoBuildEARTRAPath, tibcoBuildEARUseDesignerTRA, tibcoBuildLibraryTRAPath, tibcoBuildLibraryUseDesignerTRA, tibcoBWEngineTRAPath, tibcoDesignerPath, tibcoDesignerTRAPath, tibcoHome, tibcoRvHomePath, timeOut, XML_EXTENSION, XML_TYPE
Constructor and Description |
---|
AbstractPackagingMojo() |
Modifier and Type | Method and Description |
---|---|
protected java.util.Properties |
loadPropertiesFile(java.io.File propertiesFile)
This loads a properties file into a java.util.Properties object with
sorted keys.
|
protected void |
savePropertiesToFile(java.io.File outputFile,
java.util.Properties properties,
java.lang.String propertiesComment,
java.lang.String success,
java.lang.String failure)
This saves a java.util.Properties to a file.
|
boolean |
skip() |
protected static java.lang.String |
wildcardToRegex(java.lang.String wildcard)
Convert an expression with wildcards to a regex.
|
attachFile, checkOutputDirectory, execute, getArtifactFile, getArtifactFileExtension, getOutputFile
checkAppManage, checkDesigner, enableTestScope, getAliasesFile, getBWEARAlias, getBWEARName, getBWEARsDependencies, getDependencies, getDependencyPath, getDesigner5Prefs, getJarAlias, getJarDependencies, getJarName, getProject, getProjlibAlias, getProjlibName, getProjlibsDependencies, getPropertyValue, getPropertyValue, getPropertyValue, getPropertyValue, getPropertyValueInSettings, getRootProjectProperty, getRootProjectProperty, getSession, initHawk, isCurrentGoal, launchTIBCOBinary, launchTIBCOBinary, propertiesManager, propertyExists, propertyExists, propertyExistsInSettings, propertyExistsInSettings, readDependenciesFromFile, replaceProperties, setProject, setSession, setSettings
protected static final java.lang.String deployedProjectNameProperty
protected static final java.lang.String domainNameProperty
protected static final java.lang.String domainUsernameProperty
protected static final java.lang.String domainPasswordProperty
protected static final java.lang.String deploymentDescriptorProperty
protected static final java.lang.String deploymentDescriptorFinalProperty
protected static final java.lang.String deploymentGlobalVariablesProperty
protected static final java.lang.String deploymentServicesProperty
protected static final java.lang.String deploymentGlobalVariablesReferenceProperty
protected static final java.lang.String deploymentServicesReferenceProperty
protected static final java.lang.String deploymentGlobalVariablesCommonProperty
protected static final java.lang.String deploymentServicesCommonProperty
@Parameter(property="deploy.descriptor", defaultValue="${project.package.directory}/${project.build.finalName}.xml") protected java.io.File deploymentDescriptor
@Parameter(property="deploy.descriptor.final", defaultValue="${project.package.directory}/${project.build.finalName}-final.xml") protected java.io.File deploymentDescriptorFinal
@Parameter(property="deploy.properties.globalVariables", defaultValue="${project.package.directory}/${project.build.finalName}.gv.properties") protected java.io.File deploymentGlobalVariables
@Parameter(property="deploy.properties.services", defaultValue="${project.package.directory}/${project.build.finalName}.services.properties") protected java.io.File deploymentServices
@Parameter(property="deploy.properties.globalVariables.reference", defaultValue="${project.package.directory}/${project.artifactId}.gv.properties") protected java.io.File deploymentGlobalVariablesReference
@Parameter(property="deploy.properties.services.reference", defaultValue="${project.package.directory}/${project.artifactId}.services.properties") protected java.io.File deploymentServicesReference
@Parameter(property="deploy.properties.globalVariables.common", defaultValue="${project.package.directory}/${project.artifactId}.gv.properties") protected java.io.File deploymentGlobalVariablesCommon
@Parameter(property="deploy.properties.services.common", defaultValue="${project.package.directory}/${project.artifactId}.services.properties") protected java.io.File deploymentServicesCommon
@Parameter(property="ignoreReferenceFiles", defaultValue="false") protected boolean ignoreReferenceFiles
@Parameter(property="ignoreCommonFiles", defaultValue="false") protected boolean ignoreCommonFiles
@Parameter(property="deploy.properties.filterProperties", defaultValue="false", alias="filterProperties") protected boolean filterProperties
@Parameter(property="repoSelectInstance", defaultValue="local") protected java.lang.String repoSelectInstance
@Parameter(property="repoHttpTimeout", defaultValue="600") protected java.lang.Integer repoHttpTimeout
@Parameter(property="repoHttpUrl", defaultValue="") protected java.lang.String repoHttpUrl
@Parameter(property="repoHttpServer", defaultValue="") protected java.lang.String repoHttpServer
@Parameter(property="repoHttpUser", defaultValue="") protected java.lang.String repoHttpUser
@Parameter(property="repoHttpPassword", defaultValue="") protected java.lang.String repoHttpPassword
@Parameter(property="repoHttpExtraPropertyFile", defaultValue="") protected java.lang.String repoHttpExtraPropertyFile
@Parameter(property="repoRvTimeout", defaultValue="600") protected java.lang.Integer repoRvTimeout
@Parameter(property="repoRvDiscoveryTimeout", defaultValue="10") protected java.lang.Integer repoRvDiscoveryTimeout
@Parameter(property="repoRvDaemon", defaultValue="tcp:7500") protected java.lang.String repoRvDaemon
@Parameter(property="repoRvService", defaultValue="7500") protected java.lang.String repoRvService
@Parameter(property="repoRvNetwork", defaultValue="") protected java.lang.String repoRvNetwork
@Parameter(property="repoRvRegionalSubject", defaultValue="") protected java.lang.String repoRvRegionalSubject
@Parameter(property="repoRvOperationRetry", defaultValue="0") protected java.lang.Integer repoRvOperationRetry
@Parameter(property="repoRvServer", defaultValue="") protected java.lang.String repoRvServer
@Parameter(property="repoRvUser", defaultValue="") protected java.lang.String repoRvUser
@Parameter(property="repoRvPassword", defaultValue="") protected java.lang.String repoRvPassword
@Parameter(property="repoRvExtraPropertyFile", defaultValue="") protected java.lang.String repoRvExtraPropertyFile
@Parameter(property="repoLocalEncoding", defaultValue="UTF-8") protected java.lang.String repoLocalEncoding
@Parameter(property="events", alias="events") protected Events events
@Parameter(property="deploy.maxDeploymentRevision", defaultValue="-1") protected java.lang.String maxDeploymentRevision
@Parameter(property="deploy.contact", defaultValue="") protected java.lang.String contact
@Parameter(property="deploy.description", defaultValue="") protected java.lang.String description
@Component(role=org.apache.maven.shared.filtering.MavenResourcesFiltering.class, hint="default") protected org.apache.maven.shared.filtering.MavenResourcesFiltering mavenResourcesFiltering
protected java.util.Properties loadPropertiesFile(java.io.File propertiesFile) throws org.apache.commons.configuration.ConfigurationException, java.io.IOException
This loads a properties file into a java.util.Properties object with
sorted keys.
NB: always use keys() method to browse the properties
propertiesFile
- org.apache.commons.configuration.ConfigurationException
java.io.IOException
protected void savePropertiesToFile(java.io.File outputFile, java.util.Properties properties, java.lang.String propertiesComment, java.lang.String success, java.lang.String failure) throws org.apache.maven.plugin.MojoExecutionException
This saves a java.util.Properties to a file.
It is possible to add a comment at the beginning of the file.
outputFile,
- the File where to output the Propertiesproperties,
- the Properties to savepropertiesComment,
- the comment to add at the beginning of the filesuccess,
- the success messagefailure,
- the failure messageorg.apache.maven.plugin.MojoExecutionException
protected static java.lang.String wildcardToRegex(java.lang.String wildcard)
wildcard
- public boolean skip()