Package org.apache.sis.internal.unopkg
Class JavaMaker
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.sis.internal.unopkg.JavaMaker
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="javamaker",
defaultPhase=PROCESS_CLASSES)
public final class JavaMaker
extends org.apache.maven.plugin.AbstractMojo
Compiles Java interfaces from OpenOffice IDL files.
In an ideal world, this plugin would execute idlc on the *.idl files,
then regmerge on the generated *.urd files,
then javamaker on the generated *.rdb files.
However, since the above mentioned tools are native and would require a manual installation
on every developer machine, current version just copies a pre-compiled class file.
This copy must occurs after the compilation phase (in order to overwrite the files generated
by javac), which is why the usual Maven resources mechanism doesn't fit.
- Since:
- 0.8
- Version:
- 1.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final classCopies*.classfiles from source directory to output directory. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringBase directory of the module to compile.private StringDirectory where the output Java files will be located.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Copies the.classfiles generated by OpenOffice.Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
baseDirectory
Base directory of the module to compile. -
outputDirectory
@Parameter(property="project.build.outputDirectory", required=true, readonly=true) private String outputDirectoryDirectory where the output Java files will be located.
-
-
Constructor Details
-
JavaMaker
public JavaMaker()Invoked by reflection for creating the MOJO.
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionExceptionCopies the.classfiles generated by OpenOffice.- Throws:
org.apache.maven.plugin.MojoExecutionException- if the plugin execution failed.
-