-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
112 lines (99 loc) · 3.86 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
106
107
108
109
110
111
112
<?xml version="1.0" encoding="utf-8"?>
<project name="dbanalys-graphs" >
<!-- =================================
Definitions
================================= -->
<tstamp prefix="starttime"/>
<!-- read local config, see sample in samples directory -->
<property environment="env"/>
<property name="verbose" value="false" />
<property name="DLC" value="${env.DLC}" />
<condition property="bat" value=".bat" else="">
<os family="windows" />
</condition>
<!-- =================================
PCT
================================= -->
<taskdef resource="PCT.properties" />
<typedef resource="types.properties" />
<!-- not yet <taskdef resource="extras.properties" /> -->
<!-- add .pct directory to default excludes -->
<defaultexcludes echo="${verbose}" add="**/.pct/**"/>
<path id="PCTPropath">
<pathelement path="."/>
<pathelement path="src"/>
</path>
<!-- =================================
target: document
================================= -->
<!-- =================================
target: info
================================= -->
<target name="info" description="Show info">
<echoproperties/>
</target>
<!-- =================================
target: init
================================= -->
<target name="init" description="Initialize for first use" depends="clean,download_advisor,createdb,compile">
</target>
<!-- =================================
target: clean
================================= -->
<extension-point name="clean" description="clean"/>
<target name="delete_rcode" extensionOf="clean" description="Delete r-code">
<delete verbose="${verbose}">
<fileset dir="." includes="**/*.r" />
</delete>
</target>
<!-- =================================
target: createdb
================================= -->
<target name="createdb">
<!--
<PCTCreateBase dbName="sports2000" destDir="sample" dlcHome="${DLC}" />
-->
<exec executable="${DLC}/bin/prodb${bat}">
<arg line="sample/sports2000 sports2000" />
<env key="DLC" value="${DLC}" />
</exec>
<exec executable="${DLC}/bin/proutil${bat}">
<arg line="sample/sports2000 -C updatevst" />
<env key="DLC" value="${DLC}" />
</exec>
</target>
<!-- =================================
target: compile
================================= -->
<target name="compile" depends="" description="PCT compile ">
<PCTCompile destDir="${basedir}" graphicalMode="false" dlcHome="${DLC}"
md5="true" minSize="false" cpinternal="utf-8" cpstream="utf-8"
compileUnderscore="true" inputchars="10240"
token="1024" progPerc="0" failOnError="${pctCompile.failOnError}" runlist="yes"
verbose="${verbose}"
preprocess="true"
debugListing="true"
listing="true"
keepXref="true"
xmlXref="true"
relativePaths="false"
>
<fileset id="progress src" dir="${basedir}/src" casesensitive="false">
<patternset>
<include name="**/*.cls"/>
<include name="**/*.p"/>
</patternset>
</fileset>
<propath refid="PCTPropath" />
<!--
<DBConnectionSet refid="PCTDBConnectionSet_${project}"/>
-->
</PCTCompile>
</target>
<!-- =================================
target: compile
================================= -->
<target name="download_advisor" depends="" description="Download advisor">
<get src="http://www.oehive.org/files/advisor.p" usetimestamp="true" dest="src/advisor.p" verbose="${verbose}" />
</target>
</project>