Class FilerUtil

java.lang.Object
io.quarkus.annotation.processor.util.FilerUtil

public class FilerUtil extends Object
  • Constructor Details

  • Method Details

    • write

      public void write(String filePath, String value)
      This method uses the annotation processor Filer API and we shouldn't use a Path as paths containing \ are not supported.
    • readSet

      public Set<String> readSet(String filePath)
    • writeSet

      public void writeSet(String filePath, Set<String> set)
      This method uses the annotation processor Filer API and we shouldn't use a Path as paths containing \ are not supported.
    • writeProperties

      public void writeProperties(String filePath, Properties properties)
      This method uses the annotation processor Filer API and we shouldn't use a Path as paths containing \ are not supported.
    • writeJson

      public void writeJson(String filePath, Object value)
      This method uses the annotation processor Filer API and we shouldn't use a Path as paths containing \ are not supported.
    • writeYaml

      public void writeYaml(String filePath, Object value)
      This method uses the annotation processor Filer API and we shouldn't use a Path as paths containing \ are not supported.
    • writeModel

      public Path writeModel(String filePath, Object value)
      The model files are written outside of target/classes as we don't want to include them in the jar.

      They are not written by the annotation processor Filer API so we can use proper Paths.

    • getTargetPath

      public Path getTargetPath()
    • getPomPath

      public Optional<Path> getPomPath()
    • getExtensionMetadata

      public Optional<Map<String,Object>> getExtensionMetadata()