public class JarRewriter
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
JarRewriter.EntryData
Data to use to replace an entry in the jar file.
|
static class |
JarRewriter.FileEntryData
Entry data for a file.
|
static class |
JarRewriter.PropertiesEntryData
Entry data for
Properties. |
| Constructor and Description |
|---|
JarRewriter(java.lang.String jarFileName)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
replaceEntry(java.lang.String entryName,
JarRewriter.EntryData data)
Replace specified entry.
|
void |
rewrite()
Rewrite the jarfile.
|
public JarRewriter(java.lang.String jarFileName)
jarFileName - filename of the jarfile to rewritepublic void replaceEntry(java.lang.String entryName,
JarRewriter.EntryData data)
entryName - the name entry to replace or adddata - the data to replace the entry withpublic void rewrite()
throws java.io.IOException
java.io.IOException