jOOQ 3.13 will have a configuration/basedir property for that: https://github.com/jOOQ/jOOQ/issues/9727
In the mean time, you could run the code generation with your XYZ directory as the JVM's working directory, I suspect. Thanks, Lukas On Fri, Feb 7, 2020 at 4:36 PM Thorsten Schöning <[email protected]> wrote: > Hi all, > > configs for my code generator are placed in the following directory, > of which the upper most level is an Eclipse-project: > > > > de.am_soft.sm_mtg.backend\src\main\code_gen\de\am_soft\sm_mtg\backend\daos\db\jooq\live\code_gen.xml > > > de.am_soft.sm_mtg.backend\src\main\code_gen\de\am_soft\sm_mtg\backend\daos\db\jooq\live\logback.xml > > > de.am_soft.sm_mtg.backend\src\main\code_gen\de\am_soft\sm_mtg\backend\daos\db\jooq\live\logs\2020-02.log > > To execute things I'm using a launch config and am able to either set > a current directory and use relative paths to files or use absolute > paths using variable replacement provided by Eclipse. > > > > "${workspace_loc:de.am_soft.sm_mtg.backend/src/main/code_gen/de/am_soft/sm_mtg/backend/daos/db/jooq/code_gen.xml}" > > > "-Dlogback.configurationFile=${workspace_loc:de.am_soft.sm_mtg.backend/src/main/code_gen/de/am_soft/sm_mtg/backend/daos/db/jooq/logback.xml}" > > The problem is that I use subdirs based on the Java package and that > change form time to time and then I need to adopt those paths as well. > that means two changes in the launch config + one in logback.xml. > OTOH, if the launch config would only set the current working > directory to be in some lower level, I could use relative paths to > files mostly. > > The only place left then based on the package is the > target directory of the generator. That needs to be adopted at least > when hierarchy changes: > > > <directory>../../../../../../../../../java</directory> > > How about supporting some environment variable in that path, so that > one can get a fix path always? The launch config could define one that > wouldn't change too often that way. > > > XYZ=${workspace_loc:de.am_soft.sm_mtg.backend/src/main/java} > > <directory>${XYZ}</directory> > > Mit freundlichen Grüßen, > > Thorsten Schöning > > -- > Thorsten Schöning E-Mail: [email protected] > AM-SoFT IT-Systeme http://www.AM-SoFT.de/ > > Telefon...........05151- 9468- 55 > Fax...............05151- 9468- 88 > Mobil..............0178-8 9468- 04 > > AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln > AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow > > -- > You received this message because you are subscribed to the Google Groups > "jOOQ User Group" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jooq-user/441683929.20200207163634%40am-soft.de > . > -- You received this message because you are subscribed to the Google Groups "jOOQ User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jooq-user/CAB4ELO6KyV-szJ8wxYd%2B5Y6zUfcz7h%2B5O5G3RJP6a2g-Oypc5g%40mail.gmail.com.
