Package io.schram.jwebassembly
Class JWebAssemblyCompiler
java.lang.Object
io.schram.jwebassembly.JWebAssemblyCompiler
Facade for the "de.inetsoftware.jwebassembly.JWebAssembly" class. Retrieves and accesses the class via reflection.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJWebAssemblyCompiler
(org.apache.maven.artifact.Artifact compilerDependency, org.codehaus.plexus.logging.Logger log) Facade class for interacting with a (reflectively accessed) JWebAssembly instance -
Method Summary
Modifier and TypeMethodDescription(package private) void
(package private) void
addLibrary
(File file) (package private) void
compileToBinary
(File target) (package private) void
compileToText
(File target) private static Method
private static Class
<?> getReferenceToCompilerFor
(org.apache.maven.artifact.Artifact compilerDependency) (package private) void
setProperty
(String key, String value)
-
Field Details
-
COMPILER_CLASS_NAME
- See Also:
-
compiler
-
addFile
-
compileToBinary
-
compileToText
-
setProperty
-
addLibrary
-
log
private final org.codehaus.plexus.logging.Logger log
-
-
Constructor Details
-
JWebAssemblyCompiler
JWebAssemblyCompiler(org.apache.maven.artifact.Artifact compilerDependency, org.codehaus.plexus.logging.Logger log) throws org.apache.maven.plugin.MojoExecutionException Facade class for interacting with a (reflectively accessed) JWebAssembly instance- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-
Method Details
-
getReferenceToCompilerFor
private static Class<?> getReferenceToCompilerFor(org.apache.maven.artifact.Artifact compilerDependency) throws org.apache.maven.plugin.MojoExecutionException - Throws:
org.apache.maven.plugin.MojoExecutionException
-
getMethod
private static Method getMethod(Class<?> clazz, String name, Class<?>... parameterTypes) throws Exception - Throws:
Exception
-
addFile
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
addLibrary
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
setProperty
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
compileToBinary
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
compileToText
- Throws:
org.apache.maven.plugin.MojoExecutionException
-