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
- Author:
- Martin Desruisseaux (IRD, Geomatys)
-
Field Summary
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
-
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.
-