public class Reproducibility extends Object
| Constructor and Description |
|---|
Reproducibility() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isSourceDateEpoch()
Check if the environment variable SOURCE_DATE_EPOCH is set.
|
static void |
runWithSourceDateEpoch(org.apache.commons.io.function.IORunnable r)
Execute a runnable with SOURCE_DATE_EPOCH set.
|
public static boolean isSourceDateEpoch()
public static void runWithSourceDateEpoch(org.apache.commons.io.function.IORunnable r)
throws IOException
r - A runnable which executes the wanted steps with
SOURCE_DATE_EPOCH definedIOException - if executing the runnable throws an IOExceptionRuntimeException - if executing the runnable throws a RuntimeException