Class GeneratedFileWriter
- java.lang.Object
-
- org.drools.drl.quarkus.util.deployment.GeneratedFileWriter
-
public class GeneratedFileWriter extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGeneratedFileWriter.Builder
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_CLASSES_DIRstatic java.lang.StringDEFAULT_RESOURCE_PATHstatic java.lang.StringDEFAULT_SCAFFOLDED_SOURCES_DIRstatic java.lang.StringDEFAULT_SOURCES_DIR
-
Constructor Summary
Constructors Constructor Description GeneratedFileWriter(java.nio.file.Path classesDir, java.nio.file.Path sourcesDir, java.nio.file.Path resourcePath, java.nio.file.Path scaffoldedSourcesDir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.file.PathgetClassesDir()java.nio.file.PathgetResourcePath()java.nio.file.PathgetScaffoldedSourcesDir()java.nio.file.PathgetSourcesDir()voidwrite(org.drools.codegen.common.GeneratedFile f)voidwriteAll(java.util.Collection<org.drools.codegen.common.GeneratedFile> generatedFiles)
-
-
-
Field Detail
-
DEFAULT_SOURCES_DIR
public static final java.lang.String DEFAULT_SOURCES_DIR
- See Also:
- Constant Field Values
-
DEFAULT_RESOURCE_PATH
public static final java.lang.String DEFAULT_RESOURCE_PATH
- See Also:
- Constant Field Values
-
DEFAULT_SCAFFOLDED_SOURCES_DIR
public static final java.lang.String DEFAULT_SCAFFOLDED_SOURCES_DIR
- See Also:
- Constant Field Values
-
DEFAULT_CLASSES_DIR
public static final java.lang.String DEFAULT_CLASSES_DIR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GeneratedFileWriter
public GeneratedFileWriter(java.nio.file.Path classesDir, java.nio.file.Path sourcesDir, java.nio.file.Path resourcePath, java.nio.file.Path scaffoldedSourcesDir)- Parameters:
classesDir- usuallyDEFAULT_CLASSES_DIRsourcesDir- usually target/generated-sources/kogito/. SeeDEFAULT_SOURCES_DIRresourcePath- usually target/generated-resources/kogito/DEFAULT_RESOURCE_PATHscaffoldedSourcesDir- usuallyDEFAULT_SCAFFOLDED_SOURCES_DIR
-
-
Method Detail
-
writeAll
public void writeAll(java.util.Collection<org.drools.codegen.common.GeneratedFile> generatedFiles)
-
write
public void write(org.drools.codegen.common.GeneratedFile f) throws java.io.UncheckedIOException- Throws:
java.io.UncheckedIOException
-
getClassesDir
public java.nio.file.Path getClassesDir()
-
getSourcesDir
public java.nio.file.Path getSourcesDir()
-
getResourcePath
public java.nio.file.Path getResourcePath()
-
getScaffoldedSourcesDir
public java.nio.file.Path getScaffoldedSourcesDir()
-
-