All Downloads are FREE. Search and download functionalities are using the official Maven repository.

artoria.generator.project.AbstractSpringBootMavenProjectGenerator Maven / Gradle / Ivy

The newest version!
package artoria.generator.project;

@Deprecated
public abstract class AbstractSpringBootMavenProjectGenerator extends AbstractJavaMavenProjectGenerator {

    @Override
    protected void buildMainJavaPath(ProjectContextImpl projectContext, ModuleInfo moduleInfo) {
        super.buildMainJavaPath(projectContext, moduleInfo);
        String mainPackageChildPath = moduleInfo.getMainJavaBasePackageChildPath();
        String mainChildPath = moduleInfo.getMainJavaChildPath();
        // render
        render(projectContext, moduleInfo
                , mainChildPath + "\\Application.java"
                , mainPackageChildPath + "\\Application.java");
    }

    @Override
    public void buildMainResourcesPath(ProjectContextImpl projectContext, ModuleInfo moduleInfo) {
        super.buildMainResourcesPath(projectContext, moduleInfo);
        String mainResChildPath = moduleInfo.getMainResourcesChildPath();
        render(projectContext, moduleInfo, mainResChildPath + "\\application.yml");
        render(projectContext, moduleInfo, mainResChildPath + "\\application-dev.yml");
        render(projectContext, moduleInfo, mainResChildPath + "\\bootstrap.yml");
        render(projectContext, moduleInfo, mainResChildPath + "\\logback-spring.xml");
    }

    @Override
    public void buildTestJavaPath(ProjectContextImpl projectContext, ModuleInfo moduleInfo) {
        super.buildTestJavaPath(projectContext, moduleInfo);
        String testPackageChildPath = moduleInfo.getTestJavaBasePackageChildPath();
        String testChildPath = moduleInfo.getTestJavaChildPath();
        // render
        render(projectContext, moduleInfo
                , testChildPath + "\\ApplicationTest.java"
                , testPackageChildPath + "\\ApplicationTest.java");
    }

    @Override
    public void buildTestResourcesPath(ProjectContextImpl projectContext, ModuleInfo moduleInfo) {
        super.buildTestResourcesPath(projectContext, moduleInfo);
        String testResChildPath = moduleInfo.getTestResourcesChildPath();
        render(projectContext, moduleInfo, testResChildPath + "\\logback-test.xml");
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy