Class CreateProjectHelper


  • public class CreateProjectHelper
    extends Object
    • Method Detail

      • completeCatalog

        public static ExtensionCatalog completeCatalog​(ExtensionCatalog catalog,
                                                       Collection<String> extensions,
                                                       io.quarkus.bootstrap.resolver.maven.MavenArtifactResolver mvn)
        This method checks whether extensions to be added are specified using complete artifact coordinates, in which case they are resolved and added to the catalog so that their codestarts are picked up by the code generator.
        Parameters:
        catalog - original extension catalog
        extensions - extra extensions to add to the catalog
        mvn - Maven artifact resolver
        Returns:
        complete extension catalog
        Throws:
        io.quarkus.bootstrap.resolver.maven.BootstrapMavenException - in case of a failure to resolve extensions requested by the user
      • checkClassName

        public static String checkClassName​(String name)
      • checkPackageName

        public static String checkPackageName​(String name)
      • checkProjectRootPath

        public static Path checkProjectRootPath​(Path outputPath,
                                                String name)
      • createOutputDirectory

        public static Path createOutputDirectory​(String targetDirectory)
      • sanitizeExtensions

        public static Set<String> sanitizeExtensions​(Set<String> extensions)
      • addSourceTypeExtensions

        public static void addSourceTypeExtensions​(Set<String> extensions,
                                                   SourceType sourceType)
      • handleSpringConfiguration

        public static void handleSpringConfiguration​(Map<String,​Object> values)
      • handleSpringConfiguration

        public static void handleSpringConfiguration​(Map<String,​Object> values,
                                                     Set<String> extensions)