package ${package}.admin.test;

import org.youngmonkeys.devtools.swagger.SwaggerGenerator;

import java.io.File;

public class ${projectNameUpperCase}AdminPluginSwaggerGenerator {

    public static void main(String[] args) throws Exception {
        SwaggerGenerator swaggerGenerator = new SwaggerGenerator(
            "${package}.admin.controller"
        );
        String filePath = "src/test/resources/static/files/swagger.yaml";
        File srcFolder = new File("src");
        if (!srcFolder.exists()) {
            filePath = "${rootArtifactId}-admin-plugin/" + filePath;
        }
        swaggerGenerator.generateToFile(filePath);
    }
}
