Package org.eclipse.jetty.start.builders
Class StartIniBuilder
- java.lang.Object
-
- org.eclipse.jetty.start.builders.StartIniBuilder
-
- All Implemented Interfaces:
BaseBuilder.Config
public class StartIniBuilder extends java.lang.Object implements BaseBuilder.Config
Management of the${jetty.base}/start.ini
based configuration.Implementation of the
--add-to-start=[name]
command line behavior
-
-
Field Summary
Fields Modifier and Type Field Description private BaseHome
baseHome
private java.util.Set<java.lang.String>
modulesPresent
private java.util.Set<java.lang.String>
propsPresent
private java.nio.file.Path
startIni
-
Constructor Summary
Constructors Constructor Description StartIniBuilder(BaseBuilder baseBuilder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
addModule(Module module, Props props)
Add a module to the start environment in${jetty.base}
private void
parseIni()
-
-
-
Field Detail
-
baseHome
private final BaseHome baseHome
-
startIni
private final java.nio.file.Path startIni
-
modulesPresent
private java.util.Set<java.lang.String> modulesPresent
-
propsPresent
private java.util.Set<java.lang.String> propsPresent
-
-
Constructor Detail
-
StartIniBuilder
public StartIniBuilder(BaseBuilder baseBuilder) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
parseIni
private void parseIni() throws java.io.IOException
- Throws:
java.io.IOException
-
addModule
public java.lang.String addModule(Module module, Props props) throws java.io.IOException
Description copied from interface:BaseBuilder.Config
Add a module to the start environment in${jetty.base}
- Specified by:
addModule
in interfaceBaseBuilder.Config
- Parameters:
module
- the module to addprops
- The properties to substitute into a template- Returns:
- The ini file if module was added, null if module was not added.
- Throws:
java.io.IOException
- if unable to add the module
-
-