Package org.eclipse.jetty.start
Class BaseBuilder
- java.lang.Object
-
- org.eclipse.jetty.start.BaseBuilder
-
public class BaseBuilder extends java.lang.ObjectBuild a start configuration in${jetty.base}, including ini files, directories, and libs. Also handles License management.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceBaseBuilder.Config
-
Field Summary
Fields Modifier and Type Field Description private BaseHomebaseHomeprivate static java.lang.StringEXITING_LICENSE_NOT_ACKNOWLEDGEDprivate java.util.List<FileInitializer>fileInitializersprivate StartArgsstartArgs
-
Constructor Summary
Constructors Constructor Description BaseBuilder(BaseHome baseHome, StartArgs args)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanbuild()Build out the Base directory (if needed)BaseHomegetBaseHome()StartArgsgetStartArgs()private booleanprocessFileResource(FileArg arg)Process a specific file resourceprivate booleanprocessFileResources(java.util.List<FileArg> files)Process theFileArgfor startup, assume that all licenses have been acknowledged at this stage.
-
-
-
Field Detail
-
EXITING_LICENSE_NOT_ACKNOWLEDGED
private static final java.lang.String EXITING_LICENSE_NOT_ACKNOWLEDGED
- See Also:
- Constant Field Values
-
baseHome
private final BaseHome baseHome
-
fileInitializers
private final java.util.List<FileInitializer> fileInitializers
-
startArgs
private final StartArgs startArgs
-
-
Method Detail
-
build
public boolean build() throws java.io.IOExceptionBuild out the Base directory (if needed)- Returns:
- true if base directory was changed, false if left unchanged.
- Throws:
java.io.IOException- if unable to build
-
getBaseHome
public BaseHome getBaseHome()
-
getStartArgs
public StartArgs getStartArgs()
-
processFileResource
private boolean processFileResource(FileArg arg) throws java.io.IOException
Process a specific file resource- Parameters:
arg- the fileArg to work with- Returns:
- true if change was made as a result of the file, false if no change made.
- Throws:
java.io.IOException- if there was an issue in processing this file
-
processFileResources
private boolean processFileResources(java.util.List<FileArg> files) throws java.io.IOException
Process theFileArgfor startup, assume that all licenses have been acknowledged at this stage.- Parameters:
files- the list ofFileArgs to process- Returns:
- true if base directory modified, false if left untouched
- Throws:
java.io.IOException
-
-