Class HarvestMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
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 Details

    • HT_DIR

      public static final String HT_DIR
      See Also:
    • HT_FILE

      public static final String HT_FILE
      See Also:
    • HT_PROJECT

      public static final String HT_PROJECT
      See Also:
    • HT_WEBSITE

      public static final String HT_WEBSITE
      See Also:
    • HT_PERFORMANCE

      public static final String HT_PERFORMANCE
      See Also:
    • HT_REGISTRY

      public static final String HT_REGISTRY
      See Also:
    • generateHarvestSourceVarName

      @Parameter(defaultValue="false") protected boolean generateHarvestSourceVarName
      Generate harvestSourceVar based on harvest id
    • generateComponentGUIDs

      @Parameter(defaultValue="false") protected boolean generateComponentGUIDs
      Generate Component GUID now during heat (true) [-gg] or later during link (false) [autogenerate -ag]
    • generateGUIDBrackets

      @Parameter(defaultValue="true") protected boolean generateGUIDBrackets
      Generate component guids curly braces. Setting to false [-g1].
    • generateBinderVariables

      @Parameter(defaultValue="false") protected boolean generateBinderVariables
      Generate binder variables (true) instead of preprocessor variables (false). [-wixvar]
    • harvestKeepEmpty

      @Parameter(defaultValue="false") protected boolean harvestKeepEmpty
      Keep empty directories. Setting to true [-ke]
    • harvestSuppressRootDirectoryElement

      @Parameter(defaultValue="false") protected boolean harvestSuppressRootDirectoryElement
      Suppress harvesting the root directory as an element. Setting to true [-srd]
    • harvestSuppressUniqueIdentifiers

      @Parameter(defaultValue="false") protected boolean harvestSuppressUniqueIdentifiers
      Suppress unique identifiers for files, components, and directories.
    • harvestSuppressRegistryHarvesting

      @Parameter(defaultValue="false") protected boolean harvestSuppressRegistryHarvesting
      Suppress registry harvesting.
    • harvestTemplate

      @Parameter(defaultValue="fragment") protected String 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.MojoExecutionException
      org.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.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException