Package adams.core.bootstrapp
Class BootstrappUtils
- java.lang.Object
-
- adams.core.bootstrapp.BootstrappUtils
-
public class BootstrappUtils extends Object
Helper class for Bootstrapp related operations.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Field Summary
Fields Modifier and Type Field Description static String
KEY_COMPRESSDIRSTRUCTURE
the key for whether to compress the directory structure.static String
KEY_DEPENDENCIES
the key for the dependencies (comma-separated 'group:artifact:version').static String
KEY_EXCLUSIONS
the key for the excluded dependencies (comma-separated 'group:artifact:').static String
KEY_MAVENHOME
the key for the alternative maven home.static String
KEY_MAVENUSERSETTINGS
the key for the maven user settings.static String
KEY_OUTPUTDIR
the key for the output dir.static String
KEY_REPOSITORIES
the key for the repositories (comma-separated 'id;name;url').
-
Constructor Summary
Constructors Constructor Description BootstrappUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static adams.core.Properties
bootstrappToProps(com.github.fracpete.bootstrapp.Main main)
Turns the bootstrapp Main object into a Properties object.static com.github.fracpete.bootstrapp.Main
propsToBootstrapp(adams.core.Properties props)
Instantiates a bootstrapp Main object using the provided properties.
-
-
-
Field Detail
-
KEY_DEPENDENCIES
public static final String KEY_DEPENDENCIES
the key for the dependencies (comma-separated 'group:artifact:version').- See Also:
- Constant Field Values
-
KEY_EXCLUSIONS
public static final String KEY_EXCLUSIONS
the key for the excluded dependencies (comma-separated 'group:artifact:').- See Also:
- Constant Field Values
-
KEY_REPOSITORIES
public static final String KEY_REPOSITORIES
the key for the repositories (comma-separated 'id;name;url').- See Also:
- Constant Field Values
-
KEY_OUTPUTDIR
public static final String KEY_OUTPUTDIR
the key for the output dir.- See Also:
- Constant Field Values
-
KEY_MAVENUSERSETTINGS
public static final String KEY_MAVENUSERSETTINGS
the key for the maven user settings.- See Also:
- Constant Field Values
-
KEY_MAVENHOME
public static final String KEY_MAVENHOME
the key for the alternative maven home.- See Also:
- Constant Field Values
-
KEY_COMPRESSDIRSTRUCTURE
public static final String KEY_COMPRESSDIRSTRUCTURE
the key for whether to compress the directory structure.- See Also:
- Constant Field Values
-
-
Method Detail
-
propsToBootstrapp
public static com.github.fracpete.bootstrapp.Main propsToBootstrapp(adams.core.Properties props) throws Exception
Instantiates a bootstrapp Main object using the provided properties.- Parameters:
props
- the properties to use- Returns:
- the configured instance
- Throws:
Exception
- if congfiguration fails
-
bootstrappToProps
public static adams.core.Properties bootstrappToProps(com.github.fracpete.bootstrapp.Main main)
Turns the bootstrapp Main object into a Properties object.- Parameters:
main
- the main instance to convert- Returns:
- the generated properties
-
-