forked from phamngocvinh/galaxy-trader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
47 lines (38 loc) · 1.22 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
<project name="Galaxy Trader Distribution" default="distribute" basedir=".">
<description>
Build all Galaxy Trader Tools
</description>
<property name="dist.dir" location="distribute" />
<property name="build.dir" location="${dist.dir}/Galaxy-Trader-v1.0" />
<target name="init">
<echo message="Galaxy Trader Distribution" />
<delete dir="${dist.dir}" />
<mkdir dir="${dist.dir}" />
</target>
<target name="get-source">
<copy todir="${build.dir}">
<fileset dir="${basedir}" includes="**/*.mq5" />
</copy>
</target>
<target name="remove-archived">
<delete dir="${build.dir}/archive" />
</target>
<target name="compile">
<exec dir="${basedir}" executable="build.bat">
<arg value="${build.dir}" />
</exec>
<echo message="Built successfully" />
</target>
<target name="delete-source">
<delete dir="${build.dir}/common" />
<delete>
<fileset dir="${build.dir}" includes="**/*.mq5" />
</delete>
</target>
<target name="zip">
<zip destfile="${dist.dir}/galaxy-trader-v1.0.zip" basedir="${dist.dir}" />
<delete dir="${build.dir}" />
</target>
<!-- Default, Run to build App -->
<target name="distribute" depends="init, get-source, remove-archived, compile, delete-source, zip" />
</project>