Package org.eclipse.jetty.start
Class BaseBuilder
- java.lang.Object
-
- org.eclipse.jetty.start.BaseBuilder
-
public class BaseBuilder extends java.lang.Object
Build 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 interface
BaseBuilder.Config
-
Field Summary
Fields Modifier and Type Field Description private BaseHome
baseHome
private static java.lang.String
EXITING_LICENSE_NOT_ACKNOWLEDGED
private java.util.List<FileInitializer>
fileInitializers
private StartArgs
startArgs
-
Constructor Summary
Constructors Constructor Description BaseBuilder(BaseHome baseHome, StartArgs args)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
build()
Build out the Base directory (if needed)BaseHome
getBaseHome()
StartArgs
getStartArgs()
private boolean
processFileResource(FileArg arg)
Process a specific file resourceprivate boolean
processFileResources(java.util.List<FileArg> files)
Process theFileArg
for 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.IOException
Build 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 theFileArg
for startup, assume that all licenses have been acknowledged at this stage.- Parameters:
files
- the list ofFileArg
s to process- Returns:
- true if base directory modified, false if left untouched
- Throws:
java.io.IOException
-
-