public static enum ProjectLayout.PredefinedLayout extends java.lang.Enum<ProjectLayout.PredefinedLayout> implements ProjectLayout
ProjectLayout.CustomizedProjectLayout, ProjectLayout.F, ProjectLayout.PredefinedLayout, ProjectLayout.util, ProjectLayout.Utils
Enum Constant and Description |
---|
MAVEN
The standard maven style project layout looks like:
|
PKG |
PLAY
The Playframework v1.x project layout, looks like:
|
PROJ_LAYOUT_FILE
Modifier and Type | Method and Description |
---|---|
java.io.File |
conf(java.io.File appBase)
Returns the app configuration location in relation to the
appBase specified. |
java.util.List<java.io.File> |
routeTables(java.io.File appBase)
Returns the routing table file in relation to the
appBase specified |
static ProjectLayout.PredefinedLayout |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ProjectLayout |
valueOfIgnoreCase(java.lang.String s) |
static ProjectLayout.PredefinedLayout[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
asset, lib, resource, source, target, testLib, testResource, testSource
public static final ProjectLayout.PredefinedLayout MAVEN
/<app_root> | --- src/ | --- main/ | --- java/ | --- ... # your java packages | --- lib/ | --- ... # your lib folder (contains jar files) | --- resources/ | --- app.conf # the application configuration file | --- routes # the routing table | --- ... # other resources | --- test/ | --- java/ | --- ... your test packages | --- resources/ | --- ... | --- target/ # the build target folder
MAVEN
layout is used only when Act running in dev mode
public static final ProjectLayout.PredefinedLayout PKG
public static final ProjectLayout.PredefinedLayout PLAY
/<app_root> | --- app/ | --- # your java packages | --- lib/ | --- # your lib | --- conf/ | --- app.conf # the application configuration file | --- routes # the routing table | --- ... # other resources | --- test/ | --- # your test packages | --- tmp/ # the build target folder
PLAY
layout is used only when Act running in dev mode
public static ProjectLayout.PredefinedLayout[] values()
for (ProjectLayout.PredefinedLayout c : ProjectLayout.PredefinedLayout.values()) System.out.println(c);
public static ProjectLayout.PredefinedLayout 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 java.io.File conf(java.io.File appBase)
ProjectLayout
Returns the app configuration location in relation to the appBase
specified.
The configuration location could be either a File or a directory that contains a list of properties files or contains sub directories of a list of properties files
conf
in interface ProjectLayout
public java.util.List<java.io.File> routeTables(java.io.File appBase)
ProjectLayout
Returns the routing table file in relation to the appBase
specified
routeTables
in interface ProjectLayout
public static ProjectLayout valueOfIgnoreCase(java.lang.String s)
Copyright © 2014–2017 ActFramework. All rights reserved.