|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.surefire.booter.ManifestJarWriter
public class ManifestJarWriter
Constructs a jar containing only a META-INF/MANIFEST.MF with specified attributes.
Field Summary | |
---|---|
static String |
EOL
The End-Of-Line marker in manifests |
static int |
MAX_LINE_LENGTH
The max length of a line in a Manifest |
static int |
MAX_SECTION_LENGTH
Max length of a line section which is continued. |
Constructor Summary | |
---|---|
ManifestJarWriter(File jarFile)
|
Method Summary | |
---|---|
void |
close()
|
void |
writeValue(String name,
String value)
Write a single attribute value out. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MAX_LINE_LENGTH
public static final int MAX_SECTION_LENGTH
public static final String EOL
Constructor Detail |
---|
public ManifestJarWriter(File jarFile) throws IOException
IOException
Method Detail |
---|
public void writeValue(String name, String value) throws IOException
name
- the attribute name, e.g. "Main-Class"value
- the attribute value
IOException
- if the attribute value cannot be writtenpublic void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |