public class CommandLineWrapperUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSPATH_JAR_FILE_NAME_PREFIX |
Constructor and Description |
---|
CommandLineWrapperUtil() |
Modifier and Type | Method and Description |
---|---|
static java.io.File |
createArgumentFile(java.util.List<java.lang.String> args,
java.nio.charset.Charset cs) |
static java.io.File |
createClasspathJarFile(java.util.jar.Manifest manifest,
java.util.List<java.lang.String> pathList) |
static java.io.File |
createWrapperFile(java.util.List<java.lang.String> classpath,
java.nio.charset.Charset cs) |
static void |
fillClasspathJarFile(java.util.jar.Manifest manifest,
java.util.List<java.lang.String> pathList,
boolean notEscape,
java.io.File outputJar) |
static void |
fillClasspathJarFile(java.util.jar.Manifest manifest,
java.lang.String classPath,
java.io.File outputJar) |
static void |
writeArgumentsFile(java.io.File argFile,
java.util.List<java.lang.String> args,
java.nio.charset.Charset cs)
Writes list of Java arguments to the Java Command-Line Argument File
See https://docs.oracle.com/javase/9/tools/java.htm, section "java Command-Line Argument Files"
|
static void |
writeArgumentsFile(java.io.File argFile,
java.util.List<java.lang.String> args,
java.lang.String lineSeparator,
java.nio.charset.Charset cs)
Writes list of Java arguments to the Java Command-Line Argument File
See https://docs.oracle.com/javase/9/tools/java.htm, section "java Command-Line Argument Files"
|
static void |
writeWrapperFile(java.io.File wrapperFile,
java.util.List<java.lang.String> classpath,
java.lang.String lineSeparator,
java.nio.charset.Charset cs) |
public static final java.lang.String CLASSPATH_JAR_FILE_NAME_PREFIX
public static java.io.File createClasspathJarFile(java.util.jar.Manifest manifest, java.util.List<java.lang.String> pathList) throws java.io.IOException
java.io.IOException
public static void fillClasspathJarFile(java.util.jar.Manifest manifest, java.util.List<java.lang.String> pathList, boolean notEscape, java.io.File outputJar) throws java.io.IOException
java.io.IOException
public static void fillClasspathJarFile(java.util.jar.Manifest manifest, java.lang.String classPath, java.io.File outputJar) throws java.io.IOException
java.io.IOException
public static java.io.File createArgumentFile(java.util.List<java.lang.String> args, java.nio.charset.Charset cs) throws java.io.IOException
java.io.IOException
public static void writeArgumentsFile(java.io.File argFile, java.util.List<java.lang.String> args, java.nio.charset.Charset cs) throws java.io.IOException
argFile
- a file to write arguments intoargs
- argumentscs
- a character encoding of an output file, must be ASCII-compatible (e.g. UTF-8)java.io.IOException
public static void writeArgumentsFile(java.io.File argFile, java.util.List<java.lang.String> args, java.lang.String lineSeparator, java.nio.charset.Charset cs) throws java.io.IOException
argFile
- a file to write arguments intoargs
- argumentslineSeparator
- a line separator to use in filecs
- a character encoding of an output file, must be ASCII-compatible (e.g. UTF-8)java.io.IOException
public static java.io.File createWrapperFile(java.util.List<java.lang.String> classpath, java.nio.charset.Charset cs) throws java.io.IOException
java.io.IOException
public static void writeWrapperFile(java.io.File wrapperFile, java.util.List<java.lang.String> classpath, java.lang.String lineSeparator, java.nio.charset.Charset cs) throws java.io.IOException
java.io.IOException