public static final class SharedTemporaryFiles.FileSpecBuilder extends SecureTemporaryFiles.FileSpecBuilder
directory, executable, failWhenPermissionsNotSet, is83PathPreferred, name, prefix, suffix, useShortDirectoryName
Modifier and Type | Method and Description |
---|---|
SharedTemporaryFiles.SharedTemporaryFileSpec |
build() |
SharedTemporaryFiles.FileSpecBuilder |
setDir(File directory) |
SharedTemporaryFiles.FileSpecBuilder |
setExecutable(boolean executable) |
SharedTemporaryFiles.FileSpecBuilder |
setName(String name) |
SharedTemporaryFiles.FileSpecBuilder |
setPrefer83PathsOnWindows(boolean is83PathPreferred) |
SharedTemporaryFiles.FileSpecBuilder |
setPrefix(String prefix) |
SharedTemporaryFiles.FileSpecBuilder |
setSuffix(String suffix) |
failWhenPermissionsNotSet, useShortDirectoryName
public SharedTemporaryFiles.FileSpecBuilder setName(@NotNull String name)
setName
in class SecureTemporaryFiles.FileSpecBuilder
public SharedTemporaryFiles.FileSpecBuilder setPrefix(@NotNull String prefix)
setPrefix
in class SecureTemporaryFiles.FileSpecBuilder
public SharedTemporaryFiles.FileSpecBuilder setSuffix(@Nullable String suffix)
setSuffix
in class SecureTemporaryFiles.FileSpecBuilder
suffix
- the file name suffixpublic SharedTemporaryFiles.FileSpecBuilder setExecutable(boolean executable)
setExecutable
in class SecureTemporaryFiles.FileSpecBuilder
executable
- whether or not make the file executablepublic SharedTemporaryFiles.FileSpecBuilder setDir(@Nullable File directory)
setDir
in class SecureTemporaryFiles.FileSpecBuilder
directory
- the directory in which to create file (temp directory unless specified otherwise)public SharedTemporaryFiles.FileSpecBuilder setPrefer83PathsOnWindows(boolean is83PathPreferred)
setPrefer83PathsOnWindows
in class SecureTemporaryFiles.FileSpecBuilder
is83PathPreferred
- try using 8.3 paths if possible (only on Windows, ignored on other platforms)public SharedTemporaryFiles.SharedTemporaryFileSpec build()
build
in class SecureTemporaryFiles.FileSpecBuilder
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.