-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
79 lines (71 loc) · 3.72 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
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="release" name="Create Runnable Jar for Project immf">
<property name="src" value="./src" />
<property name="bin" value="./bin" />
<property name="release-dir" value="./imoten" />
<property name="onejar" value="${release-dir}/imoten.jar" />
<property name="release-name" value="imoten-1.1.15.zip" />
<path id="immf.classpath">
<fileset dir="./lib">
<include name="**/*.jar" />
</fileset>
</path>
<!--this file was created by Eclipse Runnable JAR Export Wizard-->
<!--ANT 1.7 is required -->
<target name="create_run_jar" depends="deleteOld,compile" description="create run jar">
<jar destfile="${onejar}" filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Main-Class" value="immf.ServerMain"/>
<attribute name="Class-Path" value="."/>
</manifest>
<!--
<fileset dir="${bin}">
<exclude name="**/log4j.properties"/>
<exclude name="**/.svn" />
</fileset>
-->
<zipfileset excludes="META-INF/*.SF" src="./lib/apache-mime4j-0.6.jar"/>
<zipfileset excludes="META-INF/*.SF" src="./lib/commons-codec-1.3.jar"/>
<zipfileset excludes="META-INF/*.SF" src="./lib/httpclient-4.0.1.jar"/>
<zipfileset excludes="META-INF/*.SF" src="./lib/httpcore-4.0.1.jar"/>
<zipfileset excludes="META-INF/*.SF" src="./lib/httpcore-nio-4.0.1.jar"/>
<zipfileset excludes="META-INF/*.SF" src="./lib/httpmime-4.0.1.jar"/>
<zipfileset excludes="META-INF/*.SF" src="./lib/commons-logging-1.1.1.jar"/>
<zipfileset excludes="META-INF/*.SF" src="./lib/json-lib-2.3-jdk15.jar"/>
<zipfileset excludes="META-INF/*.SF" src="./lib/log4j-1.2.15.jar"/>
<zipfileset excludes="META-INF/*.SF" src="./lib/commons-beanutils-1.8.2.jar"/>
<zipfileset excludes="META-INF/*.SF" src="./lib/commons-collections-3.2.1.jar"/>
<zipfileset excludes="META-INF/*.SF" src="./lib/ezmorph-1.0.6.jar"/>
<zipfileset excludes="META-INF/*.SF" src="./lib/commons-lang-2.4.jar"/>
<zipfileset excludes="META-INF/*.SF" src="./lib/activation.jar"/>
<zipfileset excludes="META-INF/*.SF" src="./lib/commons-email-1.2.jar"/>
<zipfileset excludes="META-INF/*.SF" src="./lib/mail.jar"/>
<zipfileset excludes="META-INF/*.SF" src="./lib/slf4j-api-1.5.6.jar"/>
<zipfileset excludes="META-INF/*.SF" src="./lib/slf4j-jcl-1.5.6.jar"/>
<zipfileset excludes="META-INF/*.SF" src="./lib/subethasmtp-3.1.2.jar"/>
<zipfileset excludes="META-INF/*.SF" src="./lib/jericho-html-3.1.jar"/>
<fileset dir="${bin}">
<exclude name="**/log4j.properties"/>
<exclude name="**/.svn" />
</fileset>
</jar>
</target>
<target name="deleteOld" description="Old Jar delete">
<delete file="${onejar}" />
<delete file="${release-name}" />
</target>
<target name="mkdir" description="Mkdir ${bin}">
<mkdir dir="${bin}"/>
</target>
<target name="compile" depends="mkdir" description ="Compile">
<javac srcdir="${src}" destdir="${bin}" encoding="UTF-8" classpathref="immf.classpath"/>
</target>
<target name="release" depends="create_run_jar" description="Release">
<zip destfile="${release-name}" description="release zip Archive" update="false" >
<fileset dir="${release-dir}">
<exclude name="**/.svn" />
</fileset>
</zip>
</target>
</project>