Package org.codehaus.mojo.natives.plugin
Class NativeMessageCompileMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.codehaus.mojo.natives.plugin.AbstractNativeMojo
-
- org.codehaus.mojo.natives.plugin.NativeMessageCompileMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="compile-message", defaultPhase=GENERATE_RESOURCES) public class NativeMessageCompileMojo extends AbstractNativeMojo
Compile Windows message files
-
-
Field Summary
Fields Modifier and Type Field Description private MessageCompilerManager
manager
Internalprivate java.lang.String
messageCompilerExecutable
Use this field to override provider specific message compiler executableprivate java.util.List<java.lang.String>
messageCompilerOptions
Additional Compiler optionsprotected java.io.File
messageCompilerOutputDirectory
Where to place the compiler object filesprotected java.io.File[]
messageFiles
List of message files to compileprivate java.lang.String
provider
Compiler Provider Type-
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 NativeMessageCompileMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
private MessageCompiler
getMessageCompiler()
-
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
-
messageCompilerExecutable
@Parameter private java.lang.String messageCompilerExecutable
Use this field to override provider specific message compiler executable- Since:
- 1.0-alpha-2
-
messageCompilerOptions
@Parameter private java.util.List<java.lang.String> messageCompilerOptions
Additional Compiler options- Since:
- 1.0-alpha-2
-
messageFiles
@Parameter(required=true) protected java.io.File[] messageFiles
List of message files to compile- Since:
- 1.0-alpha-2
-
messageCompilerOutputDirectory
@Parameter(defaultValue="${project.build.directory}", required=true) protected java.io.File messageCompilerOutputDirectory
Where to place the compiler object files- Since:
- 1.0-alpha-2
-
manager
@Component private MessageCompilerManager 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
-
getMessageCompiler
private MessageCompiler getMessageCompiler() throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-