public class ProjectLayoutBuilder extends java.lang.Object implements ProjectLayout
Helper to build ProjectLayout
ProjectLayout.CustomizedProjectLayout, ProjectLayout.F, ProjectLayout.PredefinedLayout, ProjectLayout.util, ProjectLayout.Utils
PROJ_LAYOUT_FILE
Constructor and Description |
---|
ProjectLayoutBuilder() |
Modifier and Type | Method and Description |
---|---|
java.io.File |
asset(java.io.File appBase)
Returns asset folder which contains public accessible files like js/css/img etc in relation to the
appBase specified |
ProjectLayoutBuilder |
asset(java.lang.String asset) |
java.io.File |
conf(java.io.File appBase)
Returns the app configuration location in relation to the
appBase specified. |
ProjectLayoutBuilder |
conf(java.lang.String conf) |
java.io.File |
lib(java.io.File appBase)
Returns lib folder which contains arbitrary jar files in relation to the
appBase specified |
ProjectLayoutBuilder |
lib(java.lang.String lib) |
java.io.File |
resource(java.io.File appBase)
Returns Resource files root in relation to the
appBase specified |
ProjectLayoutBuilder |
resource(java.lang.String rsrc) |
ProjectLayoutBuilder |
routeTable(java.lang.String routeTable) |
java.util.List<java.io.File> |
routeTables(java.io.File appBase)
Returns the routing table file in relation to the
appBase specified |
java.io.File |
source(java.io.File appBase)
Returns Java srccode file root in relation to the
appBase |
ProjectLayoutBuilder |
source(java.lang.String src) |
java.io.File |
target(java.io.File appBase)
Returns the build target folder in relation to the
appBase specified |
ProjectLayoutBuilder |
target(java.lang.String tgt) |
java.io.File |
testLib(java.io.File appBase)
Returns lib folder which contains arbitrary jar files in relation to the
appBase specified in test scope |
ProjectLayoutBuilder |
testLib(java.lang.String s) |
java.io.File |
testResource(java.io.File appBase)
Returns Resource files root in test scope in relation to the
appBase specified |
ProjectLayoutBuilder |
testResource(java.lang.String s) |
java.io.File |
testSource(java.io.File appBase)
Returns Java source code file root in test scope in relation to the
appBase |
ProjectLayoutBuilder |
testSource(java.lang.String s) |
ProjectLayout |
toLayout() |
public ProjectLayoutBuilder source(java.lang.String src)
public ProjectLayoutBuilder testSource(java.lang.String s)
public ProjectLayoutBuilder resource(java.lang.String rsrc)
public ProjectLayoutBuilder testResource(java.lang.String s)
public ProjectLayoutBuilder lib(java.lang.String lib)
public ProjectLayoutBuilder testLib(java.lang.String s)
public ProjectLayoutBuilder asset(java.lang.String asset)
public ProjectLayoutBuilder target(java.lang.String tgt)
public ProjectLayoutBuilder routeTable(java.lang.String routeTable)
public ProjectLayoutBuilder conf(java.lang.String conf)
public java.io.File source(java.io.File appBase)
ProjectLayout
Returns Java srccode file root in relation to the appBase
source
in interface ProjectLayout
public java.io.File testSource(java.io.File appBase)
ProjectLayout
Returns Java source code file root in test scope in relation to the appBase
testSource
in interface ProjectLayout
public java.io.File resource(java.io.File appBase)
ProjectLayout
Returns Resource files root in relation to the appBase
specified
resource
in interface ProjectLayout
public java.io.File testResource(java.io.File appBase)
ProjectLayout
Returns Resource files root in test scope in relation to the appBase
specified
testResource
in interface ProjectLayout
public java.io.File lib(java.io.File appBase)
ProjectLayout
Returns lib folder which contains arbitrary jar files in relation to the appBase
specified
lib
in interface ProjectLayout
public java.io.File testLib(java.io.File appBase)
ProjectLayout
Returns lib folder which contains arbitrary jar files in relation to the appBase
specified in test scope
testLib
in interface ProjectLayout
public java.io.File asset(java.io.File appBase)
ProjectLayout
Returns asset folder which contains public accessible files like js/css/img etc in relation to the appBase
specified
asset
in interface ProjectLayout
public java.io.File target(java.io.File appBase)
ProjectLayout
Returns the build target folder in relation to the appBase
specified
target
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 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 ProjectLayout toLayout()
Copyright © 2014–2017 ActFramework. All rights reserved.