112113114115116117118119120121122
} public Results build() { // gav and kModule will be null if a provided pom.xml or kmodule.xml is invalid if ( !isBuilt() && gav != null && kModuleModel != null ) { trgMfs = new MemoryFileSystem(); writePomAndKModule(); compileJavaClasses(); addKBasesFilesToTrg();
15161718192021
KieFileSystem { private final MemoryFileSystem mfs; public KieFileSystemImpl() { this(new MemoryFileSystem()); }
21222324252627
private static final String RESOURCE_PATH_PREFIX = "src/main/resource/"; private final MemoryFileSystem mfs; public KieFileSystemImpl() { this(new MemoryFileSystem()); }
109110111112113114115116117118119
} public KieBuilder buildAll() { // releaseId and kModule will be null if a provided pom.xml or kmodule.xml is invalid if ( !isBuilt() && releaseId != null && kModuleModel != null ) { trgMfs = new MemoryFileSystem(); writePomAndKModule(); compileJavaClasses(); addKBasesFilesToTrg();
12131415161718
public class MemoryKieModule extends AbstractKieModule implements ResourceReader { private final MemoryFileSystem mfs; public MemoryKieModule(ReleaseId releaseId) { this(releaseId, new KieModuleModelImpl(), new MemoryFileSystem()); }
136137138139140141142143144145146
private static final String RESOURCE_PATH_PREFIX = "src/main/resources/"; private final MemoryFileSystem mfs; public KieFileSystemImpl() { this(new MemoryFileSystem()); }