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 locationsfolder.
- Looking for the default jars folder.
- Looking for the default Rules Location folder.
- Looking for default Configuration Files.
- The
locations
parameter - The
jarDirs
parameter - The
configFiles
parameter - The
reportFilename
parameter - The
snapshotFilename
parameter - The
dryRunOutput
parameter - The
deployedSnapshot
parameter - The
nextSnapshot
parameter - The
filterFile
parameter - The
rulesLocation
parameter
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.