Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Edited convention -DworkingDir to -Dworking.dir. Also possible in dat…

…abase.properties.
  • Loading branch information...
commit 9a5a74492a35946553796c6e0f8b3d590dde5ded 1 parent afbf43b
@ErwinvanBrandwijk authored
View
2  howto.md
@@ -84,7 +84,7 @@ This is usefull if you are working with svn and want different people to update
groovy-liquibase saves filename. That is his name and path from workingDir.
-How to use: gradle -q -b liquibase.gradle update -DworkingDir=/home/erwin/Desktop
+How to use: gradle -q -b liquibase.gradle update -Dworking.dir=/home/erwin/Desktop
Now it's executing all changelogs from path /home/erwin/Desktop.
View
2  liquibase.gradle
@@ -179,7 +179,7 @@ def runLiquibase(List argList) {
}
javaexec {
- workingDir = System.properties['workingDir'] ?: projectDir
+ workingDir = System.properties['working.dir'] ?: properties['working.dir'] ?: projectDir
main = 'liquibase.integration.commandline.Main'
classpath = sourceSets.main.runtimeClasspath
args = stdArgs + argList
View
6 src/main/groovy/com/augusttechgroup/liquibase/delegate/DatabaseChangeLogDelegate.groovy
@@ -71,11 +71,11 @@ class DatabaseChangeLogDelegate {
void include(Map params = [:]) {
- def physicalChangeLogLocation = databaseChangeLog.getFilePath().replace(System.getProperty("user.dir").toString() + "/", "")
+ def physicalChangeLogLocation = databaseChangeLog.getFilePath().replace(System.getProperty("user.dir").toString() + "/", "")
def relativeToChangelogFile = false
- if(params.relativeToChangelogFile){
+ if(params.relativeToChangelogFile){
relativeToChangelogFile = params.relativeToChangelogFile
- }
+ }
if(params.file) {
if (relativeToChangelogFile && (physicalChangeLogLocation.contains("/") || physicalChangeLogLocation.contains("\\\\"))){
params.file = physicalChangeLogLocation.replaceFirst("/[^/]*\$","") + "/" + params.file
Please sign in to comment.
Something went wrong with that request. Please try again.