Package com.github.wix_maven
Class HarvestMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.github.wix_maven.AbstractWixMojo
com.github.wix_maven.AbstractPackageable
com.github.wix_maven.HarvestMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="harvest",
defaultPhase=GENERATE_SOURCES,
requiresDependencyResolution=COMPILE)
public class HarvestMojo
extends AbstractPackageable
Generates WiX authoring from various input formats.
Every time heat is run it regenerates the output file and any changes are lost.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanGenerate binder variables (true) instead of preprocessor variables (false).protected booleanGenerate Component GUID now during heat (true) [-gg] or later during link (false) [autogenerate -ag]protected booleanGenerate component guids curly braces.protected booleanGenerate harvestSourceVar based on harvest idprotected booleanKeep empty directories.protected booleanSuppress registry harvesting.protected booleanSuppress harvesting the root directory as an element.protected booleanSuppress unique identifiers for files, components, and directories.protected StringUse template, [-template] one of: fragment module productstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class com.github.wix_maven.AbstractPackageable
cabCacheDirectory, externalCabs, mergeLevel, ML_BASE, ML_DEFAULT, ML_REPACK, ML_TRANSFORM, narUnpackDirectory, outputDirectory, packLevel, PL_CACHED_CAB, PL_CULTURE_CAB, PL_DEFAULT, PL_MST, PL_PACKAGE, PL_TRANS_CAB, PL_WIXPDBFields inherited from class com.github.wix_maven.AbstractWixMojo
compilePerLocale, harvestInputDirectory, intDirectory, localeList, PACK_BUNDLE, PACK_INSTALL, PACK_LIB, PACK_MERGE, PACK_MSIX, PACK_PATCH, packaging, project, reactorProjects, relativeBase, remoteArtifactRepositories, remoteRepos, repoSession, repoSystem, skip, suppress, toolDirectory, toolDirectoryOverwrite, toolsPluginArtifactId, unpackDirectory, validate, verbose, warn, wixExtensions, wxsGeneratedDirectory, wxsInputDirectory, zipUnArchiverFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.github.wix_maven.AbstractPackageable
alternateCulturespecs, baseCulturespec, defaultLocale, getExternalCabs, getOutput, getPackageOutputExtension, getPackaging, languagesMethods inherited from class com.github.wix_maven.AbstractWixMojo
addExtension, addToolsetGeneralOptions, addWixExtensions, cleanupFileBasedResources, culturespecs, findToolsArtifact, findToolsArtifacts, getArchIntDirectory, getCommandBuilder, getExtDependencySets, getJARDependencySets, getLocales, getNPANDAYDependencySets, getOutput, getOutputPath, getPlatforms, getPrimaryCulture, getRelatedArtifacts, getRelative, getRelativePath, getWixDependencySets, getWixVersion, resolveArtifact, resolveArtifact, setLocales, setPlatforms, unpackFileBasedResources, wixUnpackDirectoryMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
HT_DIR
- See Also:
-
HT_FILE
- See Also:
-
HT_PROJECT
- See Also:
-
HT_WEBSITE
- See Also:
-
HT_PERFORMANCE
- See Also:
-
HT_REGISTRY
- See Also:
-
generateHarvestSourceVarName
@Parameter(defaultValue="false") protected boolean generateHarvestSourceVarNameGenerate harvestSourceVar based on harvest id -
generateComponentGUIDs
@Parameter(defaultValue="false") protected boolean generateComponentGUIDsGenerate Component GUID now during heat (true) [-gg] or later during link (false) [autogenerate -ag] -
generateGUIDBrackets
@Parameter(defaultValue="true") protected boolean generateGUIDBracketsGenerate component guids curly braces. Setting to false [-g1]. -
generateBinderVariables
@Parameter(defaultValue="false") protected boolean generateBinderVariablesGenerate binder variables (true) instead of preprocessor variables (false). [-wixvar] -
harvestKeepEmpty
@Parameter(defaultValue="false") protected boolean harvestKeepEmptyKeep empty directories. Setting to true [-ke] -
harvestSuppressRootDirectoryElement
@Parameter(defaultValue="false") protected boolean harvestSuppressRootDirectoryElementSuppress harvesting the root directory as an element. Setting to true [-srd] -
harvestSuppressUniqueIdentifiers
@Parameter(defaultValue="false") protected boolean harvestSuppressUniqueIdentifiersSuppress unique identifiers for files, components, and directories. -
harvestSuppressRegistryHarvesting
@Parameter(defaultValue="false") protected boolean harvestSuppressRegistryHarvestingSuppress registry harvesting. -
harvestTemplate
Use template, [-template] one of:- fragment
- module
- product
-
-
Constructor Details
-
HarvestMojo
public HarvestMojo()
-
-
Method Details
-
addToolsetOptions
protected void addToolsetOptions(org.codehaus.plexus.util.cli.Commandline cl) -
multiHeat
public void multiHeat(File heatTool, String harvestType, File harvest) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException - Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
heat
protected void heat(org.codehaus.plexus.util.cli.Commandline cl) throws org.apache.maven.plugin.MojoExecutionException - Throws:
org.apache.maven.plugin.MojoExecutionException
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-