public class CommandLineArgStringifier extends Object
Modifier and Type | Method and Description |
---|---|
static String |
asString(ArtifactFilesystem filesystem,
boolean absolute,
CommandLineArgs.ArgAndFormatString argAndFormatString) |
static String |
asString(ArtifactFilesystem filesystem,
boolean absolute,
Object object) |
public static String asString(ArtifactFilesystem filesystem, boolean absolute, CommandLineArgs.ArgAndFormatString argAndFormatString)
filesystem
- the filesystem to use to stringify Artifact
sabsolute
- If the path returned should be absolute. This can be necessary for functions
like ProcessBuilder.start()
. On windows it does not do path resolution properly for
relative paths, even if the directory
is set so an absolute path must be provided.argAndFormatString
- the object to stringify and the format string to apply after initial
stringificationpublic static String asString(ArtifactFilesystem filesystem, boolean absolute, Object object) throws CommandLineArgException
filesystem
- the filesystem to use to stringify Artifact
sabsolute
- If the path returned should be absolute. This can be necessary for functions
like ProcessBuilder.start()
. On windows it does not do path resolution properly for
relative paths, even if the directory
is set so an absolute path must be provided.object
- the object to stringifyCommandLineArgException