Class CandleMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="candle", requiresProject=true, defaultPhase=COMPILE, requiresDependencyResolution=COMPILE) public class CandleMojo extends AbstractCompilerMojo
Goal which executes WiX candle to create a .wixobj file. The following project dependency inclusion patterns apply
Dependent NAR project 'Foo' with possible nar output redefined as 'bar'
  • -dFoo.TargetDir=Foo-version\
  • -dFoo.TargetExt=.wixlib
  • -dFoo.TargetFileName=bar.type
  • -dFoo.TargetName=bar
  • Field Details

    • RESPONSE_FILE_NAME

      public static final String RESPONSE_FILE_NAME
      The name of the response file.
      See Also:
    • staleMillis

      @Parameter(property="wix.staleMillis", defaultValue="1000", required=true) protected int staleMillis
      The granularity in milliseconds of the last modification date for testing whether a source needs re-compilation
    • timestampFile

      @Parameter(property="wix.timestampFile") protected String timestampFile
      Set this value if you wish to have a single timestamp file to track changes rather than cxx,hxx comparison.
      The time-stamp file for the processed xsd files.
    • timestampDirectory

      @Parameter(property="wix.timestampDirectory", defaultValue="${project.build.directory}/mapping/cpp") protected File timestampDirectory
      The directory to store the time-stamp file for the processed aid files.
      Defaults to outputDirectory.
      Only used with xsdTimestampFile being set.
  • Constructor Details

    • CandleMojo

      public CandleMojo()
  • Method Details

    • getIncludes

      public final Set<String> getIncludes()
    • getExcludes

      public final Set<String> getExcludes()
    • addOtherOptions

      protected void addOtherOptions(org.codehaus.plexus.util.cli.Commandline cl)
    • compile

      protected void compile(File responseFile, String arch, String culture) throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • addDefinition

      protected void addDefinition(String def)
      Specified by:
      addDefinition in class AbstractCompilerMojo
    • createCommonResponseFile

      protected void createCommonResponseFile() throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException