|The jOOQ User Manual. Multiple Pages : Code generation : Advanced generator configuration : Output target configuration||previous : next|
Output target configuration
Available in ✅ Open Source Edition ✅ Express Edition ✅ Professional Edition ✅ Enterprise Edition
In the previous sections, we've seen the
<target/> element which configures the location of your generated output. The following XML snippet illustrates some additional flags that can be specified in that section:
<configuration xmlns="http://www.jooq.org/xsd/jooq-codegen-3.13.0.xsd"> ... <generator> ... <target> <packageName>[org.jooq.your.packagename]</packageName> <directory>[/path/to/your/dir]</directory> <encoding>UTF-8</encoding> <clean>true</clean> </target> </generator> </configuration>
packageName: Specifies the root package name inside of which all generated code is located. This package is located inside of the
<directory/>. The package name is part of the generator strategy and can be modified by a custom implementation, if so desired.
- directory: Specifies the root directoy inside of which all generated code is located.
- encoding: The encoding that should be used for generated classes.
clean: Whether the target package (
<packageName/>) should be cleaned to contain only generated code after a generation run. Defaults to true.