Skip to content

Commit

Permalink
Fix liquify shell script bug.
Browse files Browse the repository at this point in the history
Add toString to conversion arguments.
  • Loading branch information
daquino committed Jun 26, 2015
1 parent 1412f28 commit 9fe935b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/main/java/com/refactify/Liquify.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import liquibase.serializer.ChangeLogSerializer;
import liquibase.serializer.ChangeLogSerializerFactory;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.file.Files;
Expand Down
10 changes: 10 additions & 0 deletions src/main/java/com/refactify/arguments/ConversionArguments.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,14 @@ else if ("sql".equals(value)) {
return null;
}
}

@Override
public String toString() {
final StringBuilder sb = new StringBuilder("ConversionArguments{");
sb.append("source='").append(source).append('\'');
sb.append(", type=").append(type);
sb.append(", database='").append(database).append('\'');
sb.append('}');
return sb.toString();
}
}
3 changes: 2 additions & 1 deletion src/main/shell/liquify
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/bin/sh
java -jar libs/liquify.jar "$@"s
SCRIPTPATH=$(dirname $0)
java -jar $SCRIPTPATH/libs/liquify.jar "$@"

0 comments on commit 9fe935b

Please sign in to comment.