Package org.yamcs.maven
Class RunToolMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.yamcs.maven.AbstractProgramMojo
-
- org.yamcs.maven.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 AbstractProgramMojoRuns a Yamcs-related tool as part of a Maven build.
-
-
Field Summary
Fields Modifier and Type Field Description protected FileclassesDirectoryprotected StringtoolClass name of the tool to execute.-
Fields inherited from class org.yamcs.maven.AbstractProgramMojo
project, repositorySystem, repositorySystemSession
-
-
Constructor Summary
Constructors Constructor Description RunToolMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringbuildClasspath()Returns a classpath string representing all jars from maven dependencies and target/classes of the current project.voidexecute()protected List<String>getArgs()-
Methods inherited from class org.yamcs.maven.AbstractProgramMojo
getDependencyFiles, resolveArtifact
-
-
-
-
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
-
-