-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
52 lines (45 loc) · 1.55 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
<?xml version="1.0"?>
<project name="wowza-avalon" default="deploy">
<!--<property name="wowza.root" value="C:/Program Files (x86)/Wowza Media Systems"/> -->
<property name="wowza.root" value="/Library/Wowza Media Systems/"/>
<property name="wowza.version" value="4.7.3"/>
<property name="wowza.lib.dir" value="${wowza.root}/WowzaStreamingEngine-${wowza.version}/lib"/>
<property name="jar.filename" value="avalon-auth.jar"/>
<property name="tar.filename" value="wowza-avalon-app.tar.bz2"/>
<property name="core.build.dir" value="bin"/>
<property name="core.dist.dir" value="dist"/>
<property name="core.stage.dir" value="stage"/>
<target name="clean">
<delete>
<fileset dir="${core.dist.dir}"/>
<fileset dir="${core.build.dir}"/>
<fileset dir="${core.stage.dir}/lib"/>
</delete>
</target>
<target name="jar">
<jar jarfile="${core.dist.dir}/${jar.filename}">
<fileset dir="${core.build.dir}"/>
</jar>
</target>
<target name="stage" depends="jar">
<copy todir="${core.stage.dir}/lib" overwrite="true">
<fileset dir="${core.dist.dir}">
<filename name="${jar.filename}"/>
</fileset>
</copy>
</target>
<target name="deploy" depends="jar">
<copy todir="${wowza.lib.dir}" overwrite="true">
<fileset dir="${core.dist.dir}">
<filename name="${jar.filename}"/>
</fileset>
</copy>
</target>
<target name="dist" depends="stage">
<tar compression="bzip2" tarfile="${core.dist.dir}/${tar.filename}">
<fileset dir="${core.stage.dir}">
<exclude name="**/.gitkeep"/>
</fileset>
</tar>
</target>
</project>