The following works fine for me:
* only put one procedure into one SQL file.
* end the procedure definition with a / on a single line.
Then use the <sqlFile> tag to run the script and define the proper endDelimiter:
If you do want to keep multiple PL/SQL CREATE statements in a single file, then use
together with splitStatements="true". I think that works fine as well. But I haven't used that for ages.
* only put one procedure into one SQL file.
* end the procedure definition with a / on a single line.
Then use the <sqlFile> tag to run the script and define the proper endDelimiter:
-
<sqlFile path="create_proc.sql"
relativeToChangelogFile="true"
stripComments="false"
splitStatements="true" endDelimiter="\n/" />
If you do want to keep multiple PL/SQL CREATE statements in a single file, then use
- endDelimiter="\n/\n"
together with splitStatements="true". I think that works fine as well. But I haven't used that for ages.