public static enum ProjectLayout.util extends java.lang.Enum<ProjectLayout.util>
Modifier and Type | Method and Description |
---|---|
static ProjectLayout |
build(java.util.Properties p)
Build project layout from properties file.
|
static boolean |
probeAppBase(java.io.File dir,
ProjectLayout layout)
check if a dir is application base as per given project layout
|
static ProjectLayout.util |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ProjectLayout.util[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static ProjectLayout.util[] values()
for (ProjectLayout.util c : ProjectLayout.util.values()) System.out.println(c);
public static ProjectLayout.util valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static boolean probeAppBase(java.io.File dir, ProjectLayout layout)
check if a dir is application base as per given project layout
dir
- the folder to be probedlayout
- the project layout used to probe the foldertrue if the folder is app base as per given project layout
public static ProjectLayout build(java.util.Properties p)
Build project layout from properties file. The file content shall match the project layout interface structure, e.g:
srccode=src/main/java lib=lib routes=src/main/resources/routes conf=src/main/resources/conf target=tmp
p
- Copyright © 2014–2017 ActFramework. All rights reserved.