diff --git a/core/src/main/kotlin/de/tschuehly/spring/viewcomponent/core/processor/ViewComponentParser.kt b/core/src/main/kotlin/de/tschuehly/spring/viewcomponent/core/processor/ViewComponentParser.kt index 33be7de..62a0778 100644 --- a/core/src/main/kotlin/de/tschuehly/spring/viewcomponent/core/processor/ViewComponentParser.kt +++ b/core/src/main/kotlin/de/tschuehly/spring/viewcomponent/core/processor/ViewComponentParser.kt @@ -27,17 +27,16 @@ class ViewComponentParser( val resourceDirPath = getResourceDirPath(rootDir, packagePath) val resourceHtmlFile = getResourceFile(resourceDirPath) resourceHtmlFile.writeAll(parsedHtml) - try { val clazz = Class.forName("de.tschuehly.spring.viewcomponent.jte.JteViewComponentCompiler") val compiler = (clazz.getConstructor().newInstance() as ViewComponentCompiler) - val classDir = getClassDirPath(rootDir) compiler.compile( rootDir = resourceDirPath.toAbsolutePath(), names = srcFile.name, classDirectory = listOf( - classDir.toAbsolutePath().toString() + Path.of("jte-classes").toAbsolutePath().toString() + // classDir.toAbsolutePath().toString() ) ) } catch (e: ClassNotFoundException) { diff --git a/examples/jte-example/build.gradle.kts b/examples/jte-example/build.gradle.kts index 841f223..438f748 100644 --- a/examples/jte-example/build.gradle.kts +++ b/examples/jte-example/build.gradle.kts @@ -29,7 +29,7 @@ dependencies { implementation("org.springframework.boot:spring-boot-starter-actuator") implementation("org.springframework.boot:spring-boot-devtools") - implementation("gg.jte:jte:3.0.0") + implementation("gg.jte:jte:3.0.2") implementation("org.jetbrains.kotlin:kotlin-reflect") testImplementation("org.springframework.boot:spring-boot-starter-test") } diff --git a/jte/src/main/kotlin/de/tschuehly/spring/viewcomponent/jte/JteViewComponentCompiler.kt b/jte/src/main/kotlin/de/tschuehly/spring/viewcomponent/jte/JteViewComponentCompiler.kt index 9779f66..62f6757 100644 --- a/jte/src/main/kotlin/de/tschuehly/spring/viewcomponent/jte/JteViewComponentCompiler.kt +++ b/jte/src/main/kotlin/de/tschuehly/spring/viewcomponent/jte/JteViewComponentCompiler.kt @@ -22,7 +22,7 @@ class JteViewComponentCompiler() : ViewComponentCompiler { ) - config.classPath = classDirectory + config.classPath = null val compiler = TemplateCompiler( /* config = */ config, /* codeResolver = */ DirectoryCodeResolver(rootDir),