Search in sources :

Example 36 with Project

use of io.micronaut.starter.application.Project in project micronaut-starter by micronaut-projects.

the class NameUtils method parse.

public static Project parse(String name) throws IllegalArgumentException {
    ProjectIdentifier projectIdentifier = parseProjectIdentifier(name);
    String packageName = projectIdentifier.getPackageName();
    String appName = projectIdentifier.getName();
    String packagePath = packageName.replace('.', '/');
    String className = getNameFromScript(appName);
    String naturalName = getNaturalName(appName);
    String propertyName = getPropertyName(className);
    return new Project(packageName, packagePath, className, naturalName, propertyName, appName);
}
Also used : ProjectIdentifier(io.micronaut.starter.application.ProjectIdentifier) Project(io.micronaut.starter.application.Project)

Aggregations

Project (io.micronaut.starter.application.Project)36 RockerTemplate (io.micronaut.starter.template.RockerTemplate)23 RenderResult (io.micronaut.starter.template.RenderResult)17 TemplateRenderer (io.micronaut.starter.template.TemplateRenderer)17 RockerModel (com.fizzed.rocker.RockerModel)12 ApplicationType (io.micronaut.starter.application.ApplicationType)7 TestRockerModelProvider (io.micronaut.starter.options.TestRockerModelProvider)7 DefaultTestRockerModelProvider (io.micronaut.starter.options.DefaultTestRockerModelProvider)6 Language (io.micronaut.starter.options.Language)5 HttpStatusException (io.micronaut.http.exceptions.HttpStatusException)4 Options (io.micronaut.starter.options.Options)4 Get (io.micronaut.http.annotation.Get)3 GeneratorContext (io.micronaut.starter.application.generator.GeneratorContext)3 ProjectGenerator (io.micronaut.starter.application.generator.ProjectGenerator)3 TestFramework (io.micronaut.starter.options.TestFramework)3 MapOutputHandler (io.micronaut.starter.io.MapOutputHandler)2 OutputHandler (io.micronaut.starter.io.OutputHandler)2 BuildTool (io.micronaut.starter.options.BuildTool)2 RockerWritable (io.micronaut.starter.template.RockerWritable)2 ApiResponse (io.swagger.v3.oas.annotations.responses.ApiResponse)2