public interface BaseDirBuilder
extends java.io.Closeable
| Modifier and Type | Method and Description |
|---|---|
java.nio.file.Path |
build()
Build the baseDir.
|
default java.nio.file.Path |
build(java.util.function.Consumer<? super BaseDirBuilder> consumer) |
static BaseDirBuilder |
dir(java.io.File dir) |
java.nio.file.Path |
dir(java.lang.String path)
Creates a directory at the given path within the base dir.
|
java.nio.file.Path |
file(java.lang.String path)
Returns a path for the given path within the base dir.
|
java.nio.file.Path |
file(java.lang.String path,
java.lang.String content)
Creates a file with the given string content at the given path within the base dir.
|
static BaseDirBuilder |
jar(java.io.File jarFile) |
static BaseDirBuilder |
tmpDir() |
static BaseDirBuilder |
tmpJar() |
static BaseDirBuilder tmpDir()
static BaseDirBuilder dir(java.io.File dir)
static BaseDirBuilder tmpJar()
static BaseDirBuilder jar(java.io.File jarFile)
default java.nio.file.Path build(java.util.function.Consumer<? super BaseDirBuilder> consumer)
java.nio.file.Path file(java.lang.String path)
All parent directories will be created on demand.
path - The relative path to the pathjava.nio.file.Path file(java.lang.String path,
java.lang.String content)
All parent directories will be created on demand.
path - The relative path to the file to createcontent - The content to write to the filejava.nio.file.Path dir(java.lang.String path)
All parent directories will be created on demand.
path - The relative path to the file to createjava.nio.file.Path build()