Class UnzipBootstrapHandler
java.lang.Object
net.agilhard.maven.plugins.jpacktool.base.handler.AbstractDependencyHandler
net.agilhard.maven.plugins.jpacktool.base.handler.AbstractEndVisitDependencyHandler
net.agilhard.maven.plugins.jpacktool.handler.UnzipBootstrapHandler
public class UnzipBootstrapHandler
extends net.agilhard.maven.plugins.jpacktool.base.handler.AbstractEndVisitDependencyHandler
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description protected boolean
bootstrapFound
protected boolean
collect
protected java.util.List<java.io.File>
fileList
-
Constructor Summary
Constructors Constructor Description UnzipBootstrapHandler(net.agilhard.maven.plugins.jpacktool.base.mojo.AbstractToolMojo mojo, org.apache.maven.shared.dependency.graph.DependencyGraphBuilder dependencyGraphBuilder, java.io.File outputDirectoryJPacktool, boolean collect)
-
Method Summary
Modifier and Type Method Description void
deleteFiles()
void
execute()
protected void
executeCommand(org.codehaus.plexus.util.cli.Commandline cmd, java.io.OutputStream outputStream)
protected void
handleBootstrap(org.apache.maven.shared.dependency.graph.DependencyNode dependencyNode)
protected void
handleModJar(org.apache.maven.shared.dependency.graph.DependencyNode dependencyNode, org.apache.maven.artifact.Artifact artifact, java.util.Map.Entry<java.io.File,org.codehaus.plexus.languages.java.jpms.JavaModuleDescriptor> entry)
protected void
handleNonModJar(org.apache.maven.shared.dependency.graph.DependencyNode dependencyNode, org.apache.maven.artifact.Artifact artifact, java.util.Map.Entry<java.io.File,org.codehaus.plexus.languages.java.jpms.JavaModuleDescriptor> entry)
protected void
handleOther(org.apache.maven.shared.dependency.graph.DependencyNode dependencyNode)
boolean
isBootstrapFound()
void
setBootstrapFound(boolean bootstrapFound)
Methods inherited from class net.agilhard.maven.plugins.jpacktool.base.handler.AbstractEndVisitDependencyHandler
handleDependencyRoot
-
Field Details
-
bootstrapFound
protected boolean bootstrapFound -
fileList
protected java.util.List<java.io.File> fileList -
collect
protected boolean collect
-
-
Constructor Details
-
UnzipBootstrapHandler
public UnzipBootstrapHandler(net.agilhard.maven.plugins.jpacktool.base.mojo.AbstractToolMojo mojo, org.apache.maven.shared.dependency.graph.DependencyGraphBuilder dependencyGraphBuilder, java.io.File outputDirectoryJPacktool, boolean collect) throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Overrides:
execute
in classnet.agilhard.maven.plugins.jpacktool.base.handler.AbstractDependencyHandler
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
handleModJar
protected void handleModJar(org.apache.maven.shared.dependency.graph.DependencyNode dependencyNode, org.apache.maven.artifact.Artifact artifact, java.util.Map.Entry<java.io.File,org.codehaus.plexus.languages.java.jpms.JavaModuleDescriptor> entry) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Specified by:
handleModJar
in classnet.agilhard.maven.plugins.jpacktool.base.handler.AbstractEndVisitDependencyHandler
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
handleNonModJar
protected void handleNonModJar(org.apache.maven.shared.dependency.graph.DependencyNode dependencyNode, org.apache.maven.artifact.Artifact artifact, java.util.Map.Entry<java.io.File,org.codehaus.plexus.languages.java.jpms.JavaModuleDescriptor> entry) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Specified by:
handleNonModJar
in classnet.agilhard.maven.plugins.jpacktool.base.handler.AbstractEndVisitDependencyHandler
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
handleOther
protected void handleOther(org.apache.maven.shared.dependency.graph.DependencyNode dependencyNode) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Overrides:
handleOther
in classnet.agilhard.maven.plugins.jpacktool.base.handler.AbstractDependencyHandler
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
handleBootstrap
protected void handleBootstrap(org.apache.maven.shared.dependency.graph.DependencyNode dependencyNode) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
executeCommand
protected void executeCommand(org.codehaus.plexus.util.cli.Commandline cmd, java.io.OutputStream outputStream) throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
isBootstrapFound
public boolean isBootstrapFound() -
setBootstrapFound
public void setBootstrapFound(boolean bootstrapFound) -
deleteFiles
public void deleteFiles() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-