Class RunToolMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="run-tool",
          requiresDependencyResolution=TEST)
    @Execute(phase=PROCESS_CLASSES)
    public class RunToolMojo
    extends AbstractProgramMojo
    Runs a Yamcs-related tool as part of a Maven build.
    • Field Detail

      • tool

        @Parameter(property="yamcs.tool",
                   required=true)
        protected String tool
        Class name of the tool to execute.
      • classesDirectory

        @Parameter(defaultValue="${project.build.outputDirectory}",
                   readonly=true)
        protected File classesDirectory
    • Constructor Detail

      • RunToolMojo

        public RunToolMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • getArgs

        protected List<String> getArgs()
                                throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • buildClasspath

        protected String buildClasspath()
                                 throws org.apache.maven.plugin.MojoExecutionException
        Returns a classpath string representing all jars from maven dependencies and target/classes of the current project.
        Throws:
        org.apache.maven.plugin.MojoExecutionException