Class GeneratedFileWriter.Builder

  • Enclosing class:
    GeneratedFileWriter

    public static class GeneratedFileWriter.Builder
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Builder​(java.lang.String classesDir, java.lang.String sourcesDir, java.lang.String resourcesDir, java.lang.String scaffoldedSourcesDir)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      GeneratedFileWriter build​(java.nio.file.Path basePath)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Builder

        public Builder​(java.lang.String classesDir,
                       java.lang.String sourcesDir,
                       java.lang.String resourcesDir,
                       java.lang.String scaffoldedSourcesDir)
        Parameters:
        classesDir - usually target/classes/
        sourcesDir - usually target/generated-sources/kogito/
        resourcesDir - usually target/generated-resources/kogito/
        scaffoldedSourcesDir - usually src/main/java/
    • Method Detail

      • build

        public GeneratedFileWriter build​(java.nio.file.Path basePath)
        Parameters:
        basePath - the path to which the given subdirectories will be written e.g. ${basePath}/${classesDir}/myfile.ext