public interface ProjectLayout
Defines the project file structure supported by Act.
Used ONLY at dev time for Act to decide where to pick up the application srccode files, configuration files etc
Modifier and Type | Interface and Description |
---|---|
static class |
ProjectLayout.CustomizedProjectLayout |
static class |
ProjectLayout.F |
static class |
ProjectLayout.PredefinedLayout |
static class |
ProjectLayout.util |
static class |
ProjectLayout.Utils |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROJ_LAYOUT_FILE
The className of the properties file sit directly in
appBase dir that specifies the project layout of the application. |
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 |
java.io.File |
conf(java.io.File appBase)
Returns the app configuration location in relation to the
appBase specified. |
java.io.File |
lib(java.io.File appBase)
Returns lib folder which contains arbitrary jar files in relation to the
appBase specified |
java.io.File |
resource(java.io.File appBase)
Returns Resource files root 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 |
java.io.File |
source(java.io.File appBase)
Returns Java srccode file root in relation to the
appBase |
java.io.File |
target(java.io.File appBase)
Returns the build target folder in relation to the
appBase specified |
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 |
java.io.File |
testResource(java.io.File appBase)
Returns Resource files root in test scope in relation to the
appBase specified |
java.io.File |
testSource(java.io.File appBase)
Returns Java source code file root in test scope in relation to the
appBase |
static final java.lang.String PROJ_LAYOUT_FILE
The className of the properties file sit directly in appBase
dir that specifies the project layout of the application.
This properties file is only required if the app project uses a customized project layout, i.e. not one of the predefined layouts
:
java.io.File source(java.io.File appBase)
Returns Java srccode file root in relation to the appBase
java.io.File testSource(java.io.File appBase)
Returns Java source code file root in test scope in relation to the appBase
appBase
- java.io.File resource(java.io.File appBase)
Returns Resource files root in relation to the appBase
specified
appBase
- java.io.File testResource(java.io.File appBase)
Returns Resource files root in test scope in relation to the appBase
specified
appBase
- java.io.File lib(java.io.File appBase)
Returns lib folder which contains arbitrary jar files in relation to the appBase
specified
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
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
java.io.File target(java.io.File appBase)
Returns the build target folder 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
java.io.File conf(java.io.File appBase)
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
Copyright © 2014–2017 ActFramework. All rights reserved.