com.atlassian.bamboo.util
Class BambooFileUtils.TemporaryFileSpecBuilder

java.lang.Object
  extended by com.atlassian.bamboo.util.BambooFileUtils.TemporaryFileSpecBuilder
Enclosing class:
BambooFileUtils

public static final class BambooFileUtils.TemporaryFileSpecBuilder
extends java.lang.Object


Constructor Summary
BambooFileUtils.TemporaryFileSpecBuilder(java.lang.String content, java.lang.String prefix)
           
 
Method Summary
 BambooFileUtils.TemporaryFileSpec build()
           
 BambooFileUtils.TemporaryFileSpecBuilder setExecutable(boolean executable)
           
 BambooFileUtils.TemporaryFileSpecBuilder setPrefer83PathsOnWindows(boolean is83PathPreferred)
           
 BambooFileUtils.TemporaryFileSpecBuilder setSuffix(java.lang.String suffix)
           
 BambooFileUtils.TemporaryFileSpecBuilder setTemporaryDir(java.io.File directory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BambooFileUtils.TemporaryFileSpecBuilder

public BambooFileUtils.TemporaryFileSpecBuilder(@NotNull
                                                java.lang.String content,
                                                @NotNull
                                                java.lang.String prefix)
Parameters:
content - the content that the file should have
prefix - the file name prefix
Method Detail

setSuffix

public BambooFileUtils.TemporaryFileSpecBuilder setSuffix(@Nullable
                                                          java.lang.String suffix)
Parameters:
suffix - the file name suffix
Returns:

setExecutable

public BambooFileUtils.TemporaryFileSpecBuilder setExecutable(boolean executable)
Parameters:
executable - whether or not make the file executable
Returns:

setTemporaryDir

public BambooFileUtils.TemporaryFileSpecBuilder setTemporaryDir(@Nullable
                                                                java.io.File directory)
Parameters:
directory - the directory in which to create file (temp directory unless specified otherwise)
Returns:

setPrefer83PathsOnWindows

public BambooFileUtils.TemporaryFileSpecBuilder setPrefer83PathsOnWindows(boolean is83PathPreferred)
Parameters:
is83PathPreferred - try using 8.3 paths if possible (only on Windows, ignored on other platforms)
Returns:

build

public BambooFileUtils.TemporaryFileSpec build()
Returns:
the build object.


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.