forked from totvs/oe-test-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
46 lines (37 loc) · 1.87 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
<?xml version="1.0" encoding="utf-8"?>
<project name="oe-test-agent" default="build" basedir="." xmlns:sonar="antlib:org.sonar.ant">
<property name="dlc.dir" value="C:/dlc117" description="OpenEdge DLC Home"/>
<property name="prj.dir" value="${basedir}" description="Root folder"/>
<property name="lib.dir" value="${prj.dir}/vendor" description="OpenEdge and AutoIt compile executable folder"/>
<property name="abl.dir" value="${prj.dir}/src/abl" description="OpenEdge source code folder"/>
<property name="abl.bin.dir" value="${prj.dir}/dist/abl" description="OpenEdge compiled folder"/>
<property name="rbt.src" value="${prj.dir}/src/robot/Robot.au3" description="AutoIt Robot source code file"/>
<property name="rbt.bin" value="${prj.dir}/dist/robot/Robot.exe" description="AutoIt Robot compiled file"/>
<property name="propath" value="${abl.dir}"/>
<taskdef resource="PCT.properties" classpath="${lib.dir}/PCT.jar" loaderRef="pct"/>
<typedef resource="types.properties" classpath="${lib.dir}/PCT.jar" loaderRef="pct"/>
<DlcHome value="${dlc.dir}"/>
<target name="init">
<delete dir="dist"/>
<mkdir dir="dist/abl"/>
<mkdir dir="dist/robot"/>
</target>
<target name="build-abl">
<PCTCompile dateFormat="dmy" cpStream="ibm850" tempDir="C:/tmp" destDir="${abl.bin.dir}" graphicalMode="true" relativePaths="true">
<propath>
<pathelement location="${propath}"/>
</propath>
<fileset dir="${abl.dir}" includes="**/*.p,**/*.w,**/*.cls"/>
</PCTCompile>
<delete dir="${abl.bin.dir}/.pct"/>
</target>
<target name="build-robot">
<exec executable="${lib.dir}/autoit/Aut2Exe/Aut2exe.exe">
<arg value="/in"/>
<arg value="${rbt.src}"/>
<arg value="/out"/>
<arg value="${rbt.bin}"/>
</exec>
</target>
<target name="build" depends="init,build-abl,build-robot"/>
</project>