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 Classes
    Modifier and Type
    Class
    Description
    private static final class 
    Copies *.class files from source directory to output directory.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private String
    Base directory of the module to compile.
    private String
    Directory where the output Java files will be located.

    Fields inherited from interface org.apache.maven.plugin.Mojo

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
    Invoked by reflection for creating the MOJO.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Copies the .class files generated by OpenOffice.

    Methods inherited from class org.apache.maven.plugin.AbstractMojo

    getLog, getPluginContext, setLog, setPluginContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • baseDirectory

      @Parameter(property="basedir", required=true, readonly=true) private String baseDirectory
      Base directory of the module to compile.
    • outputDirectory

      @Parameter(property="project.build.outputDirectory", required=true, readonly=true) private String outputDirectory
      Directory 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.MojoExecutionException
      Copies the .class files generated by OpenOffice.
      Throws:
      org.apache.maven.plugin.MojoExecutionException - if the plugin execution failed.