Class JWebAssemblyMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
io.schram.jwebassembly.BaseMojo
io.schram.jwebassembly.JWebAssemblyMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Simple Maven plugin (i.e.,
Mojo for
1. retrieving the JWebAssembly compiler from Maven, and
2. executing the JWebAssembly compiler (through Reflection)-
Field Summary
FieldsModifier and TypeFieldDescription(package private) org.apache.maven.artifact.Artifact(package private) final List<org.apache.maven.model.Dependency> Fields inherited from class BaseMojo
compiler, dependencyResolver, format, logger, mavenProject, properties, repositorySystemFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidvoidexecute()private voidfindClassesToCompileIn(File file) private void(package private) JWebAssemblyCompilerprivate voidpassCodeTo(JWebAssemblyCompiler compiler) private voidpassPropertiesTo(JWebAssemblyCompiler compiler) private voidrun(JWebAssemblyCompiler compiler) Methods inherited from class BaseMojo
dependencyResolver, getLog, getLogger, getOutputFile, getOutputFormat, getPropertiesMethods inherited from class org.apache.maven.plugin.AbstractMojo
getPluginContext, setLog, setPluginContext
-
Field Details
-
compilerDependency
org.apache.maven.artifact.Artifact compilerDependency -
classesToCompile
-
dependencies
-
-
Constructor Details
-
JWebAssemblyMojo
public JWebAssemblyMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
getCompiler
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
checkIfCompilerVersionIsSupported
private void checkIfCompilerVersionIsSupported() throws org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoFailureException
-
findCodeToCompile
private void findCodeToCompile() -
findClassesToCompileIn
-
passPropertiesTo
private void passPropertiesTo(JWebAssemblyCompiler compiler) throws org.apache.maven.plugin.MojoExecutionException - Throws:
org.apache.maven.plugin.MojoExecutionException
-
passCodeTo
private void passCodeTo(JWebAssemblyCompiler compiler) throws org.apache.maven.plugin.MojoExecutionException - Throws:
org.apache.maven.plugin.MojoExecutionException
-
run
private void run(JWebAssemblyCompiler compiler) throws org.apache.maven.plugin.MojoExecutionException - Throws:
org.apache.maven.plugin.MojoExecutionException
-