This repository has been archived by the owner on Feb 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.xml
executable file
·105 lines (89 loc) · 3.66 KB
/
build.xml
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<project name="QwBioDataEtl" default="default">
<!-- default and it's depends are the normal automated full ETL. -->
<target name="default" depends="copyFromDw, transformAndLoadData" />
<target name="copyFromDw">
<echo>Copy BioData (BioShare) data from DBDW</echo>
<exec executable="sqlplus" failonerror="true">
<arg value="biodata/${wqp_biodata_password}@${instance}"/>
<arg value="@${basedir}/copyFromDw.sql"/>
</exec>
</target>
<target name="transformAndLoadData">
<echo>Running the main ETL Package</echo>
<exec executable="sqlplus" failonerror="true">
<arg value="wqp_core/${wqp_core_password}@${instance}"/>
<arg value="@${basedir}/transformAndLoadData.sql"/>
</exec>
</target>
<!-- The rest of these are if you want to run the ETL step-by-step manually. -->
<target name="dropRI">
<echo>Drop the RI</echo>
<exec executable="sqlplus" failonerror="true">
<arg value="wqp_core/${wqp_core_password}@${instance}"/>
<arg value="@${basedir}/dropRI.sql"/>
</exec>
</target>
<target name="transformStation">
<echo>Transform the Station Data</echo>
<exec executable="sqlplus" failonerror="true">
<arg value="wqp_core/${wqp_core_password}@${instance}"/>
<arg value="@${basedir}/transformStation.sql"/>
</exec>
</target>
<target name="transformOrgData">
<echo>Transform the Project Data</echo>
<exec executable="sqlplus" failonerror="true">
<arg value="wqp_core/${wqp_core_password}@${instance}"/>
<arg value="@${basedir}/transformOrgData.sql"/>
</exec>
</target>
<target name="transformResult">
<echo>Transform the Result Data</echo>
<exec executable="sqlplus" failonerror="true">
<arg value="wqp_core/${wqp_core_password}@${instance}"/>
<arg value="@${basedir}/transformResult.sql"/>
</exec>
</target>
<target name="createSummaries">
<echo>Create the Summary Tables</echo>
<exec executable="sqlplus" failonerror="true">
<arg value="wqp_core/${wqp_core_password}@${instance}"/>
<arg value="@${basedir}/createSummaries.sql"/>
</exec>
</target>
<target name="createCodes">
<echo>Create the Code Lookup Tables</echo>
<exec executable="sqlplus" failonerror="true">
<arg value="wqp_core/${wqp_core_password}@${instance}"/>
<arg value="@${basedir}/createCodes.sql"/>
</exec>
</target>
<target name="addRI">
<echo>Add back the RI</echo>
<exec executable="sqlplus" failonerror="true">
<arg value="wqp_core/${wqp_core_password}@${instance}"/>
<arg value="@${basedir}/addRI.sql"/>
</exec>
</target>
<target name="analyze">
<echo>Analyze the New Data</echo>
<exec executable="sqlplus" failonerror="true">
<arg value="wqp_core/${wqp_core_password}@${instance}"/>
<arg value="@${basedir}/analyze.sql"/>
</exec>
</target>
<target name="validate">
<echo>Validate the ETL Process</echo>
<exec executable="sqlplus" failonerror="true">
<arg value="wqp_core/${wqp_core_password}@${instance}"/>
<arg value="@${basedir}/validate.sql"/>
</exec>
</target>
<target name="install">
<echo>Install the New Data</echo>
<exec executable="sqlplus" failonerror="true">
<arg value="wqp_core/${wqp_core_password}@${instance}"/>
<arg value="@${basedir}/install.sql"/>
</exec>
</target>
</project>