Class FileUtils

java.lang.Object
io.micronaut.openapi.visitor.FileUtils

@Internal public final class FileUtils extends Object
File utilities methods.
Since:
4.10.0
  • Field Details

  • Method Details

    • resolve

      public static Path resolve(io.micronaut.inject.visitor.VisitorContext context, Path path)
    • createDirectories

      public static void createDirectories(Path f, io.micronaut.inject.visitor.VisitorContext context)
    • isYaml

      public static boolean isYaml(String path)
    • getViewsDestDir

      public static Path getViewsDestDir(Path defaultSwaggerFilePath, io.micronaut.inject.visitor.VisitorContext context)
    • getDefaultFilePath

      public static Path getDefaultFilePath(String fileName, io.micronaut.inject.visitor.VisitorContext context)
    • openApiSpecFile

      public static Path openApiSpecFile(String fileName, io.micronaut.inject.visitor.VisitorContext context)
    • userDefinedSpecFile

      public static Path userDefinedSpecFile(io.micronaut.inject.visitor.VisitorContext context)
    • calcFinalFilename

      public static Pair<String,String> calcFinalFilename(String groupFileName, OpenApiInfo openApiInfo, boolean isSingleGroup, String ext, io.micronaut.inject.visitor.VisitorContext context)