Package com.sun.enterprise.module.maven
Class HK2GenerateMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.sun.enterprise.module.maven.HK2GenerateMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
public class HK2GenerateMojo
extends org.apache.maven.plugin.AbstractMojo
Generates a consolidated OSGI bundle with a consolidated HK2 header
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private static final String
private static final String
private static final String
protected File
Directory where the manifest will be writtenprivate static final String
protected org.apache.maven.project.MavenProject
The maven project.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
catJarEntry
(JarFile jf, JarEntry e, OutputStream catStream) void
execute()
private OutputStream
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
META_INF
- See Also:
-
HK2_LOCATOR
- See Also:
-
DEFAULT
- See Also:
-
JAR_ENTRY
- See Also:
-
BUFFER_SIZE
private static final int BUFFER_SIZE- See Also:
-
manifestLocation
Directory where the manifest will be written -
project
protected org.apache.maven.project.MavenProject projectThe maven project.
-
-
Constructor Details
-
HK2GenerateMojo
public HK2GenerateMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
catJarEntry
- Throws:
IOException
-
getCatOutputStream
private OutputStream getCatOutputStream() throws org.apache.maven.plugin.MojoExecutionException, IOException- Throws:
org.apache.maven.plugin.MojoExecutionException
IOException
-