-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
114 lines (98 loc) · 4.86 KB
/
build.xml
File metadata and controls
114 lines (98 loc) · 4.86 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<?xml version="1.0"?>
<project name="Jar Publish" default="publish" basedir=".">
<property name="baseDir" value="." />
<property name="binDir" value="./bin" />
<property name="publishDir" value="./publish" />
<property name="libDir" value="./libs/" />
<tstamp>
<format property="TODAY_MY" pattern="MM/dd/yyyy hh:mm"/>
</tstamp>
<property name="version.number" value="0"/>
<property name="build.number" value="3"/>
<target name="apache_fat">
<delete file="${libDir}/apache_fat.jar"></delete>
<fatjar.build output="${libDir}/apache_fat.jar">
<fatjar.manifest/>
<fatjar.jarsource file="${libDir}\apache\commons-beanutils-1.8.0.jar" relpath=""/>
<fatjar.jarsource file="${libDir}\apache\commons-codec-1.4.jar" relpath=""/>
<fatjar.jarsource file="${libDir}\apache\commons-fileupload-1.2.1.jar" relpath=""/>
<fatjar.jarsource file="${libDir}\apache\ecs-1.4.2.jar" relpath=""/>
<fatjar.jarsource file="${libDir}\apache\commons-collections-3.2.jar" relpath=""/>
<fatjar.jarsource file="${libDir}\apache\commons-configuration-1.6.jar" relpath=""/>
<fatjar.jarsource file="${libDir}\apache\commons-io-1.4.jar" relpath=""/>
<fatjar.jarsource file="${libDir}\apache\commons-lang-2.4.jar" relpath=""/>
<fatjar.jarsource file="${libDir}\apache\commons-logging-1.1.jar" relpath=""/>
<fatjar.jarsource file="${libDir}\apache\javolution-5.5.1.jar" relpath=""/>
<fatjar.jarsource file="${libDir}\apache\json-2-RELEASE65.jar" relpath=""/>
<fatjar.jarsource file="${libDir}\apache\log4j-1.2.16.jar" relpath=""/>
<fatjar.jarsource file="${libDir}\apache\netsf-json-lib-2.2.2-jdk15.jar" relpath=""/>
<fatjar.jarsource file="${libDir}\apache\servlet-api-2.5-6.1.14.jar" relpath=""/>
<fatjar.jarsource file="${libDir}\apache\slf4j-api-1.5.6.jar" relpath=""/>
<fatjar.jarsource file="${libDir}\apache\slf4j-jdk14-1.5.10.jar" relpath=""/>
<fatjar.jarsource file="${libDir}\apache\slf4j-log4j12-1.5.8.jar" relpath=""/>
</fatjar.build>
</target>
<target name="aradon_fat">
<delete file="${libDir}/aradon_fat_0.5.jar"></delete>
<fatjar.build output="${libDir}/aradon_fat_0.5.jar">
<fatjar.manifest/>
<fatjar.jarsource file="${libDir}\aradon\aradon_0.5.jar" relpath=""/>
<fatjar.jarsource file="${libDir}\aradon\iframework_2.2.jar" relpath=""/>
<fatjar.jarsource file="${libDir}\aradon\jetty_fat.jar" relpath=""/>
<fatjar.jarsource file="${libDir}\aradon\rest_fat.jar" relpath=""/>
</fatjar.build>
</target>
<target name="test_websocket" depends="apache_fat, aradon_fat" >
<property name="test.reports" value="./resource/report" />
<path id="test.classpath">
<pathelement location="bin" />
<pathelement path="libs/apache/junit.jar" />
<fileset dir="libs">
<include name="*.jar"/>
</fileset>
</path>
<junit printsummary="on" haltonfailure="on" fork="true">
<classpath refid="test.classpath" />
<formatter type="xml" />
<test name="net.ion.websocket.TestAllWebSocket" todir="resource"/>
</junit>
<!--
<junit fork="yes" printsummary="no" haltonfailure="no">
<batchtest fork="yes" todir="${test.reports}" >
<fileset dir="${classes}">
<include name="**/*Test.class" />
</fileset>
</batchtest>
<formatter type="xml" />
<classpath refid="test.classpath" />
</junit>
<junitreport todir="${test.reports}">
<fileset dir="${test.reports}">
<include name="TEST-*.xml" />
</fileset>
<report todir="${test.reports}" />
</junitreport> -->
</target>
<target name="publish" depends="test_websocket">
<property name="manifest.main.class" value="net.ion.websocket.server.ServerNodeRunner" />
<property name="manifest.classpath" value="lib/apache_fat.jar lib/aradon_fat_0.5.jar lib/netty-3.2.5.Final.jar"/>
<!-- delete file="${libDir}/websocket_${version.number}.${build.number}.jar" /-->
<jar destfile="publish/websocket_${version.number}.${build.number}.jar">
<manifest>
<attribute name="Manifest-Version" value="1.0" />
<attribute name="Built-By" value="${user.name}" />
<attribute name="Created-By" value="${user.name}" />
<attribute name="Main-Class" value="${manifest.main.class}" />
<attribute name="Built-Date" value="${TODAY_MY}" />
<attribute name="Class-Path" value="${manifest.classpath}" />
<section name="common">
<attribute name="Specification-Title" value="websocket" />
<attribute name="Specification-Version" value="${version.number}.${build.number}" />
<attribute name="Specification-Vendor" value="i-on" />
<attribute name="Specification-Dev" value="bleujin,minato" />
</section>
</manifest>
<fileset dir="${binDir}/" includes="net/**" />
</jar>
</target>
</project>