This is an automated email from the ASF dual-hosted git repository. yiconghuang pushed a commit to branch fix/use-texera-home-for-jooq in repository https://gitbox.apache.org/repos/asf/texera.git
commit 55ec6679b6cd90643ac9a189ea3f091fcd05a397 Author: Yicong Huang <[email protected]> AuthorDate: Sun Oct 12 21:39:09 2025 -0700 fix: use TEXERA_HOME --- .../main/scala/org/apache/texera/dao/JooqCodeGenerator.scala | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/common/dao/src/main/scala/org/apache/texera/dao/JooqCodeGenerator.scala b/common/dao/src/main/scala/org/apache/texera/dao/JooqCodeGenerator.scala index 0283d934fd..1457a524c6 100644 --- a/common/dao/src/main/scala/org/apache/texera/dao/JooqCodeGenerator.scala +++ b/common/dao/src/main/scala/org/apache/texera/dao/JooqCodeGenerator.scala @@ -30,13 +30,17 @@ object JooqCodeGenerator { @throws[Exception] def main(args: Array[String]): Unit = { // Load jOOQ configuration XML - val jooqXmlPath: Path = - Path.of("dao").resolve("src").resolve("main").resolve("resources").resolve("jooq-conf.xml") + val jooqXmlPath: Path =Path + .of(sys.env.getOrElse("TEXERA_HOME", ".")) + .resolve("common") + .resolve("dao").resolve("src").resolve("main").resolve("resources").resolve("jooq-conf.xml") val jooqConfig: Configuration = GenerationTool.load(Files.newInputStream(jooqXmlPath)) // Load storage.conf from the specified path val storageConfPath: Path = Path - .of("config") + .of(sys.env.getOrElse("TEXERA_HOME", ".")) + .resolve("common") + .resolve("config") .resolve("src") .resolve("main") .resolve("resources")
