Package org.codehaus.mojo.natives.plugin
Class NativeResourceCompileMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.codehaus.mojo.natives.plugin.AbstractNativeMojo
-
- org.codehaus.mojo.natives.plugin.NativeResourceCompileMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="resource-compile", defaultPhase=GENERATE_RESOURCES) public class NativeResourceCompileMojo extends AbstractNativeMojo
Compile Windows resource files
-
-
Field Summary
Fields Modifier and Type Field Description private ResourceCompilerManager
manager
Internalprivate java.lang.String
provider
Compiler Provider Typeprivate java.lang.String
resourceCompilerExecutable
Use this field to override provider specific resource compiler executableprivate java.util.List<java.lang.String>
resourceCompilerOptions
Resource compiler optionsprotected java.io.File
resourceCompilerOutputDirectory
private NativeSources[]
resources
Array of NativeSources containing include directories and source files-
Fields inherited from class org.codehaus.mojo.natives.plugin.AbstractNativeMojo
dependencyIncludeDirectory, EMPTY_FILE_LIST, envFactoryManager, INCZIP_FOUND, INCZIP_TYPE, LINKER_INPUT_LIST_NAME, LINKER_OUTPUT_PATH, project, workingDirectory
-
-
Constructor Summary
Constructors Constructor Description NativeResourceCompileMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
private ResourceCompiler
getResourceCompiler()
-
Methods inherited from class org.codehaus.mojo.natives.plugin.AbstractNativeMojo
getAllCompilersOutputFileList, getEnvFactory, getProject, removeEmptyOptions, saveCompilerOutputFilePaths
-
-
-
-
Field Detail
-
provider
@Parameter(defaultValue="msvc", required=true) private java.lang.String provider
Compiler Provider Type- Since:
- 1.0-alpha-2
-
resourceCompilerExecutable
@Parameter private java.lang.String resourceCompilerExecutable
Use this field to override provider specific resource compiler executable- Since:
- 1.0-alpha-2
-
resourceCompilerOptions
@Parameter private java.util.List<java.lang.String> resourceCompilerOptions
Resource compiler options- Since:
- 1.0-alpha-2
-
resources
@Parameter private NativeSources[] resources
Array of NativeSources containing include directories and source files- Since:
- 1.0-alpha-8
-
resourceCompilerOutputDirectory
@Parameter(defaultValue="${project.build.directory}", required=true) protected java.io.File resourceCompilerOutputDirectory
- Since:
- 1.0-alpha-2
-
manager
@Component private ResourceCompilerManager manager
Internal- Since:
- 1.0-alpha-2
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getResourceCompiler
private ResourceCompiler getResourceCompiler() throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-