Package com.github.wix_maven
Class WixprojMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.github.wix_maven.AbstractWixMojo
com.github.wix_maven.AbstractCompilerMojo
com.github.wix_maven.WixprojMojo
- 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'
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 Summary
FieldsModifier and TypeFieldDescriptionprotected FileTarget directory for Nar file unpacking.protected booleanThe directory to store the time-stamp file for the processed aid files.protected booleanDo the binds need to be named for matching during patching.protected FileThe file to store vsproj settings for maven dependencies.Fields 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
Modifier and TypeMethodDescriptionprotected voidaddDefinition(String def) protected voidaddDefinitionBase(Text set, String def) protected voidaddDefinitionX64(String def) protected voidaddDefinitionX86(String def) protected voidaddExtension(org.codehaus.plexus.util.cli.Commandline cl, String extFile) protected voidprotected voidaddLinkPath(String libFolder, String namedBindPath) protected voidaddResource(File resUnpackDirectory, org.apache.maven.artifact.Artifact wixRes) voidexecute()Methods inherited from class com.github.wix_maven.AbstractCompilerMojo
addHarvestDefine, addHarvestDefines, addJARDefines, addNARDefines, addNPANDAYDefines, addWixDefines, defineRepoFile, defineWixUnpackFile, getNARDependencySetsMethods inherited from class com.github.wix_maven.AbstractWixMojo
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
-
updateVSProj
@Parameter(property="wix.updateVSProj", defaultValue="true") protected boolean updateVSProjThe 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 narUnpackDirectoryTarget directory for Nar file unpacking. -
vsprojTarget
@Parameter(property="wix.vsprojTarget", defaultValue="${project.basedir}/MavenDependency.targets") protected File vsprojTargetThe file to store vsproj settings for maven dependencies. -
useNamedBindPath
@Parameter(property="wix.useNamedBindPath", defaultValue="false") protected boolean useNamedBindPathDo 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.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
addDefinition
- Specified by:
addDefinitionin classAbstractCompilerMojo
-
addDefinitionBase
-
addDefinitionX86
-
addDefinitionX64
-
addExtension
- Overrides:
addExtensionin classAbstractWixMojo
-
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:
addResourcein classAbstractCompilerMojo- Throws:
org.apache.maven.plugin.MojoExecutionException
-
addLinkPath
-