Class BlueprintCompiler

java.lang.Object
de.spraener.nxtgen.incubator.BlueprintCompiler

public class BlueprintCompiler extends Object

A BlueprintCompiler copies a whole subtree from the resource classpath to the given output path. Each file is processed by mustache with the scope defined in the BlueprintCompiler.

A sub path in the blueprint can hold variable references them self. For example a path like "{{appname}}/Dockerfile" will be translated to "myapp/Dockerfile" if the value of 'appname' is 'myapp' in the current scope.

  • Constructor Details

    • BlueprintCompiler

      public BlueprintCompiler(String resourceRoot)
      Initiates the Blueprint-Compiler with the resources under the given resourceRoot-Path.
      Parameters:
      resourceRoot -
    • BlueprintCompiler

      public BlueprintCompiler(String name, List<String> fileList, BlueprintSupplier blueprintSupplier)
  • Method Details

    • getScope

      public Map<String,String> getScope()
    • evaluateTo

      public void evaluateTo(String outDir)
    • getName

      public String getName()
    • getRequiredValues

      public List<String> getRequiredValues()