2 title: outputBaseDirectory
3 date: 2019-09-27T18:51:08+02:00
15 Controls the root directory `YoSQL` will use to output generated Java code.
17 ## Configuration Options
21 The default value of the `outputBaseDirectory` configuration option is `.` - the current directory. Note that tooling may change the default output base directory to better reflect a typical project structure used with such a tool.
23 ### Option: 'some/other/directory'
25 Changing the `outputBaseDirectory` configuration option to `some/other/directory!` configures `YoSQL` to write into the relative directory`some/other/directory`.
27 ### Option: '/an/absolute/path'
29 Changing the `outputBaseDirectory` configuration option to `/an/absolute/path!` configures `YoSQL` to write into the absolute directory path `/an/absolute/path`.
33 - [inputBaseDirectory](../inputbasedirectory/): Controls the input directory for `.sql` files.
39 In order to use `YoSQL` together with [Maven](https://maven.apache.org/), take a look at the tooling [documentation for Maven](/tooling/maven/). By default, the Maven tooling with set `outputBaseDirectory` to `target/generated-sources/yosql`.
41 {{< maven/config/files/outputBaseDirectory >}}
45 In order to use `YoSQL` together with [Gradle](https://gradle.org/), take a look at the tooling [documentation for Gradle](/tooling/gradle/). By default, the Gradle tooling with set `outputBaseDirectory` to `build/generated/sources/yosql`.
50 id("wtf.metio.yosql") version "1.2.3"
55 outputBaseDirectory = file("build/generated-sources/yosql")
62 In order to use `YoSQL` together with [Bazel](https://bazel.build/), take a look at the tooling [documentation for Bazel](/tooling/bazel/).
66 In order to use YoSQL on the command line, take a look at the tooling [documentation for CLI](/tooling/cli/).
69 $ yosql --files-output-base-directory=generated-sources/yosql
72 The shorter form is available as well:
75 $ yosql --output-base-directory=generated-sources/yosql