-
Notifications
You must be signed in to change notification settings - Fork 26
/
build.xml
47 lines (45 loc) · 1.61 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
<?xml version="1.0" encoding="UTF-8" ?>
<project name="monitor_push" default="build" basedir=".">
<property name="src" value="src" />
<property name="lib" value="libs" />
<property name="dest" value="bin" />
<property name="jar" value="jar" />
<property name="jar_name" value="netty_push_server.jar" />
<property name="sdk_name" value="netty_server_sdk.jar" />
<path id="third_jar">
<fileset dir="${lib}">
<include name="*.jar" />
</fileset>
</path>
<target name="compile" depends="clean,init">
<javac srcdir="${src}" destdir="${dest}" encoding="UTF-8">
<classpath refid="third_jar" />
</javac>
<copy todir="${dest}">
<fileset dir="${src}">
<exclude name="**/*.java" />
</fileset>
</copy>
</target>
<target name="build" depends="compile">
<jar jarfile="${jar}/${jar_name}" basedir="${dest}" manifest="META-INF/MANIFEST.MF"
excludes="com/netty/push/sdk/client/**" />
<unzip src="${lib}/netty-all-4.0.23.Final.jar" dest="${dest}">
<patternset>
<exclude name="META-INF"/>
<exclude name="META-INF/MANIFEST.MF"/>
</patternset>
</unzip>
<jar jarfile="${jar}/${sdk_name}" basedir="${dest}"
includes="com/netty/push/sdk/client/**,com/netty/push/sdk/pojo/**,io/netty/handler/codec/serialization/**,io/netty/util/**,io/netty/bootstrap/**,io/netty/channel/**,io/netty/buffer/**,io/netty/handler/codec/*.class" />
</target>
<target name="clean">
<delete dir="${jar}" />
<delete dir="${dest}" />
<delete file="${jar}/${jar_name}" />
</target>
<target name="init">
<mkdir dir="${dest}" />
<mkdir dir="${jar}" />
</target>
</project>