Class WixprojMojo

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

@Mojo(name="wixproj", defaultPhase=VALIDATE, requiresDependencyResolution=COMPILE) public class WixprojMojo 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

    • updateVSProj

      @Parameter(property="wix.updateVSProj", defaultValue="true") protected boolean updateVSProj
      The directory to store the time-stamp file for the processed aid files. Defaults to outputDirectory. Only used with xsdTimestampFile being set.
    • narUnpackDirectory

      @Parameter(property="nar.unpackDirectory", defaultValue="${project.build.directory}/nar") protected File narUnpackDirectory
      Target directory for Nar file unpacking.
    • vsprojTarget

      @Parameter(property="wix.vsprojTarget", defaultValue="${project.basedir}/MavenDependency.targets") protected File vsprojTarget
      The file to store vsproj settings for maven dependencies.
    • useNamedBindPath

      @Parameter(property="wix.useNamedBindPath", defaultValue="false") protected boolean useNamedBindPath
      Do the binds need to be named for matching during patching.
  • Constructor Details

    • WixprojMojo

      public WixprojMojo()
  • Method Details

    • 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
    • addDefinition

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

      protected void addDefinitionBase(Text set, String def)
    • addDefinitionX86

      protected void addDefinitionX86(String def)
    • addDefinitionX64

      protected void addDefinitionX64(String def)
    • addExtension

      protected void addExtension(org.codehaus.plexus.util.cli.Commandline cl, String extFile)
      Overrides:
      addExtension in class AbstractWixMojo
    • addLib

      protected void addLib(org.apache.maven.artifact.Artifact wixRes, Text linkDep, String arch) throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • addResource

      protected void addResource(File resUnpackDirectory, org.apache.maven.artifact.Artifact wixRes) throws org.apache.maven.plugin.MojoExecutionException
      Overrides:
      addResource in class AbstractCompilerMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • addLinkPath

      protected void addLinkPath(String libFolder, String namedBindPath)