forked from scouter-project/scouter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
43 lines (32 loc) · 1.38 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
<project name="Scouter" default="all" basedir=".">
<property name="deploy-dir" value="./out/package"/>
<property name="outpack-dir" value="./out"/>
<property name="VERSION" value="0.4.22"/>
<target name="packing">
<mkdir dir="${outpack-dir}"/>
<tar destfile="${outpack-dir}/${outpack-file}">
<tarfileset dir="${deploy-dir}" mode="755" >
<include name="**/*.sh"/>
</tarfileset>
<tarfileset dir="${deploy-dir}">
<include name="**/*"/>
<exclude name="**/*.sh"/>
</tarfileset>
</tar>
<gzip src="${outpack-dir}/${outpack-file}" destfile="${outpack-dir}/${outpack-file}.gz"/>
<delete file="${outpack-dir}/${outpack-file}"/>
</target>
<target name="all">
<tstamp>
<format property="today" pattern="yyyyMMdd" offset="-8" unit="hour"/>
</tstamp>
<property name="outpack-file" value="scouter-${today}.tar"/>
<echo>Scouter ${VERSION} ${today}</echo>
<ant antfile="build-common.xml" dir="."/>
<ant antfile="build-agent.java.xml" dir="."/>
<ant antfile="build-agent.batch.xml" dir="."/>
<ant antfile="build-server.xml" dir="."/>
<ant antfile="build-agent.host.xml" dir="."/>
<antcall target="packing"/>
</target>
</project>