-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdb_oracle.xml
More file actions
25 lines (22 loc) · 900 Bytes
/
Copy pathdb_oracle.xml
File metadata and controls
25 lines (22 loc) · 900 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<project name="db_oracle">
<macrodef name="sqlplus">
<attribute name="file"/>
<attribute name="options"/>
<attribute name="path"/>
<sequential>
<echo message="sqlplus @{options} @@@{file}"/>
<exec dir="@{path}" failonerror="true" executable="sqlplus" osfamily="windows">
<arg line="@{options} @@@{file}"/>
<env key="NLS_LANG" value="${nls_lang}"/>
<env key="NLS_DATE_FORMAT" value="${nls_date_format}"/>
</exec>
<exec dir="@{path}" failonerror="true" executable="sqlplus" osfamily="unix">
<arg line="@{options} @@@{file}"/>
<env key="NLS_LANG" value="${nls_lang}"/>
<env key="NLS_DATE_FORMAT" value="${nls_date_format}"/>
<env key="PATH" value="${env.PATH}:."/>
</exec>
</sequential>
</macrodef>
</project>