Class 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.
    • 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 the FileArg for startup, assume that all licenses have been acknowledged at this stage.
        Parameters:
        files - the list of FileArgs to process
        Returns:
        true if base directory modified, false if left untouched
        Throws:
        java.io.IOException