Package org.eclipse.tycho.extras.pack200
Class ForkedPack200Wrapper
- java.lang.Object
-
- org.eclipse.tycho.extras.pack200.Pack200Wrapper
-
- org.eclipse.tycho.extras.pack200.ForkedPack200Wrapper
-
public class ForkedPack200Wrapper extends Pack200Wrapper
Executes pack200 pack/unpack in external JVM
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
ARTIFACT_ARTIFACTID
private static java.lang.String
ARTIFACT_GROUPID
private static int
FORKED_PROCESS_TIMEOUT_SECONDS
-
Fields inherited from class org.eclipse.tycho.extras.pack200.Pack200Wrapper
COMMAND_PACK, COMMAND_UNPACK
-
-
Constructor Summary
Constructors Constructor Description ForkedPack200Wrapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
execute(java.util.List<org.apache.maven.artifact.Artifact> pluginArtifacts, java.lang.String command, java.io.File fileFrom, java.io.File fileTo)
private java.io.File
getPack200ImplArtifact(java.util.List<org.apache.maven.artifact.Artifact> pluginArtifacts)
void
pack(java.util.List<org.apache.maven.artifact.Artifact> pluginArtifacts, java.io.File jar, java.io.File pack)
void
unpack(java.util.List<org.apache.maven.artifact.Artifact> pluginArtifacts, java.io.File packFile, java.io.File jarFile)
-
Methods inherited from class org.eclipse.tycho.extras.pack200.Pack200Wrapper
main, unpack
-
-
-
-
Field Detail
-
ARTIFACT_GROUPID
private static final java.lang.String ARTIFACT_GROUPID
- See Also:
- Constant Field Values
-
ARTIFACT_ARTIFACTID
private static final java.lang.String ARTIFACT_ARTIFACTID
- See Also:
- Constant Field Values
-
FORKED_PROCESS_TIMEOUT_SECONDS
private static final int FORKED_PROCESS_TIMEOUT_SECONDS
- See Also:
- Constant Field Values
-
-
Method Detail
-
pack
public void pack(java.util.List<org.apache.maven.artifact.Artifact> pluginArtifacts, java.io.File jar, java.io.File pack) throws java.io.IOException
- Overrides:
pack
in classPack200Wrapper
- Throws:
java.io.IOException
-
unpack
public void unpack(java.util.List<org.apache.maven.artifact.Artifact> pluginArtifacts, java.io.File packFile, java.io.File jarFile) throws java.io.IOException
- Overrides:
unpack
in classPack200Wrapper
- Throws:
java.io.IOException
-
execute
private void execute(java.util.List<org.apache.maven.artifact.Artifact> pluginArtifacts, java.lang.String command, java.io.File fileFrom, java.io.File fileTo) throws java.io.IOException
- Throws:
java.io.IOException
-
getPack200ImplArtifact
private java.io.File getPack200ImplArtifact(java.util.List<org.apache.maven.artifact.Artifact> pluginArtifacts)
-
-