Package com.facebook.buck.step.fs
Enum CopyStep.DirectoryMode
- java.lang.Object
-
- java.lang.Enum<CopyStep.DirectoryMode>
-
- com.facebook.buck.step.fs.CopyStep.DirectoryMode
-
- All Implemented Interfaces:
Serializable
,Comparable<CopyStep.DirectoryMode>
- Enclosing class:
- CopyStep
public static enum CopyStep.DirectoryMode extends Enum<CopyStep.DirectoryMode>
When copying a directory, this specifies whether only the contents of the directory should be copied, or if the directory itself should be included.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTENTS_ONLY
Copy only the contents of the directory (recursively).DIRECTORY_AND_CONTENTS
Copy the directory and its contents (recursively).
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CopyStep.DirectoryMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static CopyStep.DirectoryMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONTENTS_ONLY
public static final CopyStep.DirectoryMode CONTENTS_ONLY
Copy only the contents of the directory (recursively). If copying a source directory 'foo' with a file 'bar.txt' to a destination directory 'dest', this will create 'dest/bar.txt'.
-
DIRECTORY_AND_CONTENTS
public static final CopyStep.DirectoryMode DIRECTORY_AND_CONTENTS
Copy the directory and its contents (recursively). If copying a source directory 'foo' with a file 'bar.txt' to a destination directory 'dest', this will create 'dest/foo/bar.txt'.
-
-
Method Detail
-
values
public static CopyStep.DirectoryMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CopyStep.DirectoryMode c : CopyStep.DirectoryMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CopyStep.DirectoryMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-