public class NativeCompileMojo extends AbstractNativeMojo
| Modifier and Type | Field and Description |
|---|---|
private java.util.List |
compilerEndOptions
Compiler options
|
private java.lang.String |
compilerExecutable
Use this field to override provider specific compiler executable
|
private java.util.List |
compilerMiddleOptions
Compiler options
|
protected java.io.File |
compilerOutputDirectory
Compiler output files ( .o, .obj, etc) location
|
private java.lang.String |
compilerProvider
Compiler Provider Type
|
private java.util.List |
compilerStartOptions
Compiler options
|
private CompilerConfiguration |
config
For unittest only
|
private java.lang.String |
javahOS
Javah OS name.
|
private java.io.File |
jdkIncludePath
JDK native include directory
|
private CompilerManager |
manager
Internal
|
protected int |
numberOfConcurrentCompilation
Number of parallel compilation threads
|
private java.lang.String |
objectFileExtension
Use this field to override object file extension.
|
protected NativeSources[] |
sources
Array of NativeSources containing include directories and source files.
|
dependencyIncludeDirectory, EMPTY_FILE_LIST, envFactoryManager, INCZIP_FOUND, INCZIP_TYPE, LINKER_INPUT_LIST_NAME, LINKER_OUTPUT_PATH, project, workingDirectory| Constructor and Description |
|---|
NativeCompileMojo() |
| Modifier and Type | Method and Description |
|---|---|
private void |
addAdditionalIncludePath()
Pickup additional source paths that previous phases added to source root Note: we intentionally ignore the first
item of source root ( ie ${project.build.directory}/classes since this plugin never use it.
|
private void |
addJavaHIncludePaths() |
protected CompilerConfiguration |
createProviderConfiguration() |
void |
execute() |
protected CompilerConfiguration |
getCompilerConfiguration()
Internal only for test harness purpose
|
getAllCompilersOutputFileList, getEnvFactory, getProject, removeEmptyOptions, saveCompilerOutputFilePathsprivate java.lang.String compilerProvider
private java.lang.String objectFileExtension
private java.lang.String compilerExecutable
private java.util.List compilerStartOptions
private java.util.List compilerMiddleOptions
private java.util.List compilerEndOptions
private java.lang.String javahOS
private java.io.File jdkIncludePath
protected NativeSources[] sources
protected java.io.File compilerOutputDirectory
protected int numberOfConcurrentCompilation
private CompilerManager manager
private CompilerConfiguration config
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprivate void addJavaHIncludePaths()
private void addAdditionalIncludePath()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected CompilerConfiguration createProviderConfiguration() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected CompilerConfiguration getCompilerConfiguration()