public abstract class AbstractBWArtifactMojo extends AbstractBWMojo
This abstract class is aimed at preparing the build of a TIBCO artefact,
either EAR, Projlib, deployment POM, XML configuration file...
Because this class inherits from AbstractBWMojo
, a TIBCO environment
will be initialized before building the artefact. The created artefact will
hence be the same on every platform.
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
classifier |
protected java.lang.String |
finalName
Name of the generated artifact (without file extension).
|
protected java.lang.Boolean |
skipCompile
Whether to skip the compilation of EAR and Projlib.
|
protected java.lang.Boolean |
skipEARCompile
Whether to skip the compilation of EAR.
|
protected java.lang.Boolean |
skipPackage
Whether to skip the package goals.
|
protected java.lang.Boolean |
skipProjlibCompile
Whether to skip the compilation of Projlib.
|
protected java.lang.Boolean |
touchEARIfSkipped
Whether to "touch" the EAR file when EAR compilation is skipped.
|
protected java.lang.Boolean |
touchFinalDeploymentDescriptorIfSkipped
Whether to "touch" the final deployment descriptor file when final
deployment descriptor generation is skipped.
|
protected java.lang.Boolean |
touchProjlibIfSkipped
Whether to "touch" the Projlib file when Projlib compilation is skipped.
|
protected static java.lang.String |
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 |
---|
AbstractBWArtifactMojo() |
Modifier and Type | Method and Description |
---|---|
protected void |
attachFile(java.io.File f,
java.lang.String type,
java.lang.String classifier) |
protected void |
checkOutputDirectory()
This will check whether
outputDirectory exists and is a
directory. |
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.io.File |
getArtifactFile(java.io.File basedir,
java.lang.String finalName,
java.lang.String classifier)
Retrieves the full path of the artifact that will be created.
|
protected abstract java.lang.String |
getArtifactFileExtension() |
protected java.io.File |
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 WARN_NO_ARTIFACT_ATTACHED
@Parameter(property="bw.compile.skip", required=false, defaultValue="false") protected java.lang.Boolean skipCompile
@Parameter(property="bw.compile.ear.skip", required=false, defaultValue="false") protected java.lang.Boolean skipEARCompile
@Parameter(property="bw.compile.ear.skip.touch", required=false, defaultValue="false") protected java.lang.Boolean touchEARIfSkipped
@Parameter(property="bw.compile.projlib.skip", required=false, defaultValue="false") protected java.lang.Boolean skipProjlibCompile
@Parameter(property="bw.compile.projlib.skip.touch", required=false, defaultValue="false") protected java.lang.Boolean touchProjlibIfSkipped
@Parameter(property="bw.package.skip", required=false, defaultValue="false") protected java.lang.Boolean skipPackage
@Parameter(property="bw.package.skip.deploy.descriptor.final.touch", required=false, defaultValue="false") protected java.lang.Boolean touchFinalDeploymentDescriptorIfSkipped
@Parameter(property="project.build.finalName", required=true) protected java.lang.String finalName
@Parameter(property="project.build.classifier") protected java.lang.String classifier
protected abstract java.lang.String getArtifactFileExtension()
protected void attachFile(java.io.File f, java.lang.String type, java.lang.String classifier)
protected java.io.File getArtifactFile(java.io.File basedir, java.lang.String finalName, java.lang.String classifier)
basedir,
- the directory where the artifact will be createdfinalName,
- the name of the artifact, without file extensionclassifier
- File
object with the path of the artifactprotected java.io.File getOutputFile()
File
protected void checkOutputDirectory()
outputDirectory
exists and is a
directory. Otherwise it will be created.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 AbstractBWMojo
org.apache.maven.plugin.MojoExecutionException