Package io.schram.jwebassembly
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
@Mojo(name="compile", defaultPhase=PROCESS_CLASSES) public class JWebAssemblyMojo extends BaseMojoSimple Maven plugin (i.e.,Mojofor 1. retrieving the JWebAssembly compiler from Maven, and 2. executing the JWebAssembly compiler (through Reflection)
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.List<java.io.File>classesToCompile(package private) org.apache.maven.artifact.ArtifactcompilerDependency(package private) java.util.List<org.apache.maven.model.Dependency>dependencies-
Fields inherited from class io.schram.jwebassembly.BaseMojo
compiler, dependencyResolver, format, logger, mavenProject, properties, repositorySystem
-
-
Constructor Summary
Constructors Constructor Description JWebAssemblyMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidcheckIfCompilerVersionIsSupported()voidexecute()private voidfindClassesToCompileIn(java.io.File file)private voidfindCodeToCompile()(package private) JWebAssemblyCompilergetCompiler()private voidpassCodeTo(JWebAssemblyCompiler compiler)private voidpassPropertiesTo(JWebAssemblyCompiler compiler)private voidrun(JWebAssemblyCompiler compiler)-
Methods inherited from class io.schram.jwebassembly.BaseMojo
dependencyResolver, getLog, getLogger, getOutputFile, getOutputFormat, getProperties
-
-
-
-
Method Detail
-
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
JWebAssemblyCompiler getCompiler() throws org.apache.maven.plugin.MojoExecutionException
- 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
private void findClassesToCompileIn(java.io.File file)
-
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
-
-