forked from wjw465150/RedisManager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathant_build.xml
More file actions
91 lines (82 loc) · 3.62 KB
/
Copy pathant_build.xml
File metadata and controls
91 lines (82 loc) · 3.62 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- WARNING: Eclipse auto-generated file. Any modifications will be overwritten.
To include a user specific buildfile here, simply create one in the same
directory with the processing instruction <?eclipse.ant.import?> as the first
entry and export the buildfile again. -->
<project basedir="." default="build" name="RedisManager">
<property environment="env" />
<property name="debuglevel" value="source,lines,vars" />
<property name="target" value="1.5" />
<property name="source" value="1.5" />
<path id="RedisManager.classpath">
<pathelement location="bin" />
<pathelement location="lib/catalina.jar" />
<pathelement location="lib/servlet-api.jar" />
<pathelement location="lib/tomcat-coyote.jar" />
<pathelement location="lib/tomcat-juli.jar" />
<pathelement location="lib/jarjar-1.2.jar"/>
<pathelement location="lib/com.springsource.org.apache.commons.pool-1.5.3.jar"/>
<pathelement location="lib/kryo-all.jar"/>
</path>
<target name="init">
<mkdir dir="bin" />
<copy includeemptydirs="false" todir="bin">
<fileset dir="src">
<exclude name="**/*.launch" />
<exclude name="**/*.java" />
</fileset>
</copy>
</target>
<target name="clean">
<delete dir="bin" />
</target>
<target depends="clean" name="cleanall" />
<target depends="build-subprojects,build-project" name="build" />
<target name="build-subprojects" />
<target depends="init" name="build-project">
<echo message="${ant.project.name}: ${ant.file}" />
<javac debug="true" debuglevel="${debuglevel}" destdir="bin"
source="${source}" target="${target}">
<src path="src" />
<classpath refid="RedisManager.classpath" />
</javac>
<echo message="-post-build:begin" />
<echo message="project path: ${basedir}" />
<!-- 生成不需要依赖的wjw-redismanager.jar -->
<taskdef name="jarjar" classname="com.tonicsystems.jarjar.JarJarTask" classpath="lib/jarjar-1.2.jar"/>
<jarjar jarfile="${basedir}/wjw-redismanager.jar">
<fileset dir="${basedir}/bin">
<include name="**/ext/**" />
<include name="redis/**" />
</fileset>
<zipfileset src="lib/com.springsource.org.apache.commons.pool-1.5.3.jar"/>
<zipfileset src="lib/kryo-all.jar"/>
<rule pattern="org.apache.commons.pool.**" result="internal.org.apache.commons.pool.@1"/>
<rule pattern="redis.**" result="internal.redis.@1"/>
<rule pattern="com.esotericsoftware.**" result="internal.com.esotericsoftware.@1"/>
<rule pattern="de.**" result="internal.de.@1"/>
<rule pattern="org.objenesis.**" result="internal.org.objenesis.@1"/>
</jarjar>
<delete dir="${basedir}/tmp" quiet="true"/>
<mkdir dir="${basedir}/tmp"/>
<unzip src="${basedir}/wjw-redismanager.jar" dest="${basedir}/tmp">
</unzip>
<delete file="${basedir}/wjw-redismanager.jar"/>
<jar destfile="${basedir}/wjw-redismanager.jar">
<fileset dir="${basedir}/tmp">
<include name="org/apache/catalina/**" />
<include name="internal/**" />
</fileset>
<manifest>
<attribute name="Built-By" value="wjw465150@gmail.com" />
<attribute name="Build-Name" value="wjw-redismanager" />
<attribute name="Build-Version" value="2.2" />
</manifest>
</jar>
<delete dir="${basedir}/tmp" quiet="true"/>
<echo message="-post-build:end" />
</target>
<target
description="Build all projects which reference this project. Useful to propagate changes."
name="build-refprojects" />
</project>