Class BootstrappUtils


  • public class BootstrappUtils
    extends Object
    Helper class for Bootstrapp related operations.
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    • 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_MAVENUSERSETTINGS

        public static final String KEY_MAVENUSERSETTINGS
        the key for the maven user settings.
        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
    • Constructor Detail

      • BootstrappUtils

        public BootstrappUtils()
    • 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