Created
August 23, 2013 12:31
-
-
Save willis7/6318810 to your computer and use it in GitHub Desktop.
This Gist shows how to run the utplsql project using Gradle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ext{ | |
| dbun = "SCOTT" | |
| dbpw = "oracle" | |
| dbinst = "orcl" | |
| } | |
| task deployUnitTests << { | |
| def sqlplusCmd = "sqlplus -s $dbun/$dbpw @../src/test/sql/run.sql".execute() | |
| sqlplusCmd.in.eachLine { line -> println line } | |
| } | |
| task runUnitTests << { | |
| def sqlplusCmd = "sqlplus -s $dbun/$dbpw @ut_run.sql".execute() | |
| sqlplusCmd.in.eachLine { line -> println line } | |
| } | |
| task deployDBUpdate << { | |
| def sqlplusCmd = "sqlplus -s $dbun/$dbpw @../src/main/sql/run.sql".execute() | |
| sqlplusCmd.in.eachLine { line -> println line } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment