@Mojo(name="merge-properties", defaultPhase=PREPARE_PACKAGE) public class MergePropertiesMojo extends AbstractPackagingMojo
This goal will merge the reference and common properties into the working properties files (usually the ones in "target/package").
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
MERGE_FAILURE |
protected static java.lang.String |
MERGING_PROPERTIES |
protected static java.lang.String |
NOTHING_TO_MERGE |
protected static java.lang.String |
PROPERTIES_LOAD_FAILURE |
protected static java.lang.String |
PROPERTIES_SAVE_GVS_FAILURE |
protected static java.lang.String |
PROPERTIES_SAVE_GVS_SUCCESS |
protected static java.lang.String |
PROPERTIES_SAVE_SERVICES_FAILURE |
protected static java.lang.String |
PROPERTIES_SAVE_SERVICES_SUCCESS |
protected static java.lang.String |
USING_GVS_COMMON_FILE |
protected static java.lang.String |
USING_GVS_REFERENCE_FILE |
protected static java.lang.String |
USING_SERVICES_COMMON_FILE |
protected static java.lang.String |
USING_SERVICES_REFERENCE_FILE |
contact, deployedProjectNameProperty, deploymentDescriptor, deploymentDescriptorFinal, deploymentDescriptorFinalProperty, deploymentDescriptorProperty, deploymentGlobalVariables, deploymentGlobalVariablesCommon, deploymentGlobalVariablesCommonProperty, deploymentGlobalVariablesProperty, deploymentGlobalVariablesReference, deploymentGlobalVariablesReferenceProperty, deploymentServices, deploymentServicesCommon, deploymentServicesCommonProperty, deploymentServicesProperty, deploymentServicesReference, deploymentServicesReferenceProperty, description, domainNameProperty, domainPasswordProperty, domainUsernameProperty, events, filterProperties, ignoreCommonFiles, ignoreReferenceFiles, mavenResourcesFiltering, maxDeploymentRevision, repoHttpExtraPropertyFile, repoHttpPassword, repoHttpServer, repoHttpTimeout, repoHttpUrl, repoHttpUser, repoLocalEncoding, repoRvDaemon, repoRvDiscoveryTimeout, repoRvExtraPropertyFile, repoRvNetwork, repoRvOperationRetry, repoRvPassword, repoRvRegionalSubject, repoRvServer, repoRvService, repoRvTimeout, repoRvUser, 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 |
---|
MergePropertiesMojo() |
Modifier and Type | Method and Description |
---|---|
void |
execute()
The execute method of this Mojo will :
check that the BusinessWorks project exists
copy the Designer5.prefs file
copy the .designtimelibs file useful for setting a TIBCO environment
for the project being built.
|
protected java.util.Properties |
expandWildCards(java.util.Properties properties)
This expands wild cards properties.
|
protected java.lang.String |
getArtifactFileExtension() |
protected boolean |
isAWildCard(java.lang.String key) |
fr.fastconnect.factory.tibco.bw.maven.packaging.MergePropertiesMojo.MergedFiles |
mergeFiles(java.util.Properties propertiesGlobalVariables,
java.util.Properties propertiesServices,
java.io.File deploymentGlobalVariables,
java.io.File deploymentServices,
java.lang.String messageGlobalVariables,
java.lang.String messageServices) |
protected java.util.Properties |
removeWildCards(java.util.Properties properties) |
loadPropertiesFile, savePropertiesToFile, skip, wildcardToRegex
attachFile, checkOutputDirectory, getArtifactFile, 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 MERGING_PROPERTIES
protected static final java.lang.String NOTHING_TO_MERGE
protected static final java.lang.String MERGE_FAILURE
protected static final java.lang.String PROPERTIES_LOAD_FAILURE
protected static final java.lang.String PROPERTIES_SAVE_GVS_SUCCESS
protected static final java.lang.String PROPERTIES_SAVE_GVS_FAILURE
protected static final java.lang.String PROPERTIES_SAVE_SERVICES_SUCCESS
protected static final java.lang.String PROPERTIES_SAVE_SERVICES_FAILURE
protected static final java.lang.String USING_GVS_COMMON_FILE
protected static final java.lang.String USING_GVS_REFERENCE_FILE
protected static final java.lang.String USING_SERVICES_COMMON_FILE
protected static final java.lang.String USING_SERVICES_REFERENCE_FILE
protected java.lang.String getArtifactFileExtension()
getArtifactFileExtension
in class AbstractBWArtifactMojo
public fr.fastconnect.factory.tibco.bw.maven.packaging.MergePropertiesMojo.MergedFiles mergeFiles(java.util.Properties propertiesGlobalVariables, java.util.Properties propertiesServices, java.io.File deploymentGlobalVariables, java.io.File deploymentServices, java.lang.String messageGlobalVariables, java.lang.String messageServices) throws org.apache.maven.plugin.MojoExecutionException, java.io.IOException
org.apache.maven.plugin.MojoExecutionException
java.io.IOException
protected boolean isAWildCard(java.lang.String key)
protected java.util.Properties expandWildCards(java.util.Properties properties)
This expands wild cards properties.
Both wildcard expressions and expressions to expand are present in the
same properties object.
Example
properties,
- the properties object with wildcard expressions and
expressions to expandprotected java.util.Properties removeWildCards(java.util.Properties properties)
public void execute() throws org.apache.maven.plugin.MojoExecutionException
AbstractBWMojo
The execute method of this Mojo will :
execute
in interface org.apache.maven.plugin.Mojo
execute
in class AbstractBWArtifactMojo
org.apache.maven.plugin.MojoExecutionException