Working Directory Parameter
Published 15 January 2025
Description
The working directory to consider when dealing with relative paths. If configured, this parameter will affect the below areas:
- Looking for the default migration locations folder.
- Looking for the default jars folder.
- Looking for the default Rules Location folder.
- Looking for default Configuration Files.
- The
locationsparameter - The
jarDirsparameter - The
configFilesparameter - The
reportFilenameparameter - The
snapshotFilenameparameter - The
dryRunOutputparameter - The
deployedSnapshotparameter - The
nextSnapshotparameter - The
filterFileparameter - The
rulesLocationparameter - The
rulesConfigparameter
Type
String
Default
none
Usage
Command-line
./flyway -workingDirectory="my_project" info
Environment Variable
Not available
API
Flyway.configure()
.workingDirectory("my_project")
.load()
Gradle
Not available
Maven
<configuration>
<workingDirectory>my_project</workingDirectory>
</configuration>
Notes
If this parameter is left empty, Flyway will use the directory that Flyway is executed in.