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 Details

    • provider

      @Parameter(defaultValue="msvc", required=true) private String provider
      Compiler Provider Type
      Since:
      1.0-alpha-2
    • resourceCompilerExecutable

      @Parameter private String resourceCompilerExecutable
      Use this field to override provider specific resource compiler executable
      Since:
      1.0-alpha-2
    • resourceCompilerOptions

      @Parameter private List<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 File resourceCompilerOutputDirectory
      Since:
      1.0-alpha-2
    • manager

      @Component private ResourceCompilerManager manager
      Internal
      Since:
      1.0-alpha-2
  • Constructor Details

    • NativeResourceCompileMojo

      public NativeResourceCompileMojo()
  • Method Details

    • 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