public class BuildMojo extends AbstractMojo
Builder (C++ header file -> Java class -> C++ JNI -> native library).
Can also be considered as an example of how to use the Builder programmatically.| Modifier and Type | Field and Description |
|---|---|
private String |
classOrPackageName
Process only this class or package (suffixed with .* or .**)
|
private String[] |
classOrPackageNames
Process only these classes or packages (suffixed with .* or .**)
|
private String |
classPath
Load user classes from classPath
|
private String[] |
classPaths
Load user classes from classPaths
|
private boolean |
compile
Compile and delete the generated .cpp files
|
private String[] |
compilerOptions
Pass compilerOptions directly to compiler
|
private boolean |
copyLibs
Copy to output directory dependent libraries (link and preload)
|
private Map<String,String> |
environmentVariables
Environment variables added to the compiler subprocess
|
private boolean |
header
Generate header file with declarations of callbacks functions
|
private String |
includePath
Add the path to the "platform.includepath" property.
|
private String[] |
includePaths
Add the paths to the "platform.includepath" property.
|
private String |
jarPrefix
Also create a JAR file named
<jarPrefix>-<platform>.jar |
private String |
linkPath
Add the path to the "platform.linkpath" property.
|
private String[] |
linkPaths
Add the paths to the "platform.linkpath" property.
|
private File |
outputDirectory
Output all generated files to outputDirectory
|
private String |
outputName
Output everything in a file named after given outputName
|
private String |
preloadPath
Add the path to the "platform.preloadpath" property.
|
private String[] |
preloadPaths
Add the paths to the "platform.preloadpath" property.
|
private MavenProject |
project |
private String |
properties
Load all properties from resource
|
private File |
propertyFile
Load all properties from file
|
private Properties |
propertyKeysAndValues
Set property keys to values
|
private boolean |
skip
Skip the execution.
|
| Constructor and Description |
|---|
BuildMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
(package private) String[] |
merge(String[] ss,
String s) |
getLog, getPluginContext, setLog, setPluginContextprivate String classPath
private String[] classPaths
private String includePath
private String[] includePaths
private String linkPath
private String[] linkPaths
private String preloadPath
private String[] preloadPaths
private File outputDirectory
private String outputName
private boolean compile
private boolean header
private boolean copyLibs
private String jarPrefix
<jarPrefix>-<platform>.jarprivate String properties
private File propertyFile
private Properties propertyKeysAndValues
private String classOrPackageName
private String[] classOrPackageNames
private Map<String,String> environmentVariables
private String[] compilerOptions
private boolean skip
private MavenProject project
public void execute()
throws MojoExecutionException
MojoExecutionExceptionCopyright © 2014. All Rights Reserved.