-
Notifications
You must be signed in to change notification settings - Fork 187
/
make.bat
67 lines (57 loc) · 6.11 KB
/
make.bat
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
@echo off
del /F/S/Q build 1>NUL 2>NUL
rd /S/Q build 1>NUL 2>NUL
del /F/S/Q dist 1>NUL 2>NUL
rd /S/Q dist 1>NUL 2>NUL
mkdir build
mkdir dist
set JDK10_PATH=C:\Program Files\Java\jdk-10.0.1
set JDK9_PATH=C:\Program Files\Java\jdk-9.0.1
set JDK8_PATH=C:\Program Files\Java\jdk1.8.0_161
set JDK7_PATH=C:\Program Files\Java\jdk1.7.0_80
set JDK6_PATH=C:\Program Files\Java\jdk1.6.0_43
set JDK5_PATH=C:\Program Files\Java\jdk1.5.0_22
"%JDK8_PATH%\bin\javac.exe" -source 5 -target 5 -bootclasspath "%JDK5_PATH%\jre\lib\rt.jar;%JDK5_PATH%\jre\lib\jsse.jar" -Xlint:unchecked,-options -cp lib\javax.servlet-api-3.1.0.jar;lib\javax.websocket-api-1.1.jar -d build src/main/java/hprose/common/*.java src/main/java/hprose/util/*.java src/main/java/hprose/util/concurrent/*.java src/main/java/hprose/client/*.java src/main/java/hprose/io/*.java src/main/java/hprose/io/access/*.java src/main/java/hprose/io/convert/*.java src/main/java/hprose/io/serialize/*.java src/main/java/hprose/io/unserialize/*.java src/main/java/hprose/net/*.java src/main/java/hprose/server/*.java
"%JDK8_PATH%\bin\jar.exe" cf dist/hprose_for_java_5.jar -C build .
del /Q build\hprose\server\*
rmdir build\hprose\server
del /Q build\hprose\common\HproseMethod.class
del /Q build\hprose\common\HproseMethods.class
"%JDK8_PATH%\bin\jar.exe" cf dist/hprose_client_for_java_5.jar -C build .
"%JDK8_PATH%\bin\javac.exe" -source 6 -target 6 -bootclasspath "%JDK6_PATH%\jre\lib\rt.jar;%JDK6_PATH%\jre\lib\jsse.jar" -Xlint:unchecked,-options -cp lib\javax.servlet-api-3.1.0.jar;lib\javax.websocket-api-1.1.jar -d build src/main/java/hprose/common/*.java src/main/java/hprose/util/*.java src/main/java/hprose/util/concurrent/*.java src/main/java/hprose/client/*.java src/main/java/hprose/io/*.java src/main/java/hprose/io/access/*.java src/main/java/hprose/io/convert/*.java src/main/java/hprose/io/serialize/*.java src/main/java/hprose/io/unserialize/*.java src/main/java/hprose/net/*.java src/main/java/hprose/server/*.java
"%JDK8_PATH%\bin\jar.exe" cf dist/hprose_for_java_6.jar -C build .
del /Q build\hprose\server\*
rmdir build\hprose\server
del /Q build\hprose\common\HproseMethod.class
del /Q build\hprose\common\HproseMethods.class
"%JDK8_PATH%\bin\jar.exe" cf dist/hprose_client_for_java_6.jar -C build .
"%JDK8_PATH%\bin\javac.exe" -source 7 -target 7 -bootclasspath "%JDK7_PATH%\jre\lib\rt.jar;%JDK7_PATH%\jre\lib\jsse.jar" -Xlint:unchecked,-options -cp lib\javax.servlet-api-3.1.0.jar;lib\javax.websocket-api-1.1.jar -d build src/main/java/hprose/common/*.java src/main/java/hprose/util/*.java src/main/java/hprose/util/concurrent/*.java src/main/java/hprose/client/*.java src/main/java/hprose/io/*.java src/main/java/hprose/io/access/*.java src/main/java/hprose/io/convert/*.java src/main/java/hprose/io/serialize/*.java src/main/java/hprose/io/unserialize/*.java src/main/java/hprose/net/*.java src/main/java/hprose/server/*.java
"%JDK8_PATH%\bin\jar.exe" cf dist/hprose_for_java_7.jar -C build .
del /Q build\hprose\server\*
rmdir build\hprose\server
del /Q build\hprose\common\HproseMethod.class
del /Q build\hprose\common\HproseMethods.class
"%JDK8_PATH%\bin\jar.exe" cf dist/hprose_client_for_java_7.jar -C build .
"%JDK8_PATH%\bin\javac.exe" -source 8 -target 8 -bootclasspath "%JDK8_PATH%\jre\lib\rt.jar;%JDK8_PATH%\jre\lib\jsse.jar" -Xlint:unchecked,-options -cp lib\javax.servlet-api-3.1.0.jar;lib\javax.websocket-api-1.1.jar -d build src/main/java/hprose/common/*.java src/main/java/hprose/util/*.java src/main/java/hprose/util/concurrent/*.java src/main/java/hprose/client/*.java src/main/java/hprose/io/*.java src/main/java/hprose/io/access/*.java src/main/java/hprose/io/convert/*.java src/main/java/hprose/io/convert/java8/*.java src/main/java/hprose/io/serialize/*.java src/main/java/hprose/io/serialize/java8/*.java src/main/java/hprose/io/unserialize/*.java src/main/java/hprose/io/unserialize/java8/*.java src/main/java/hprose/net/*.java src/main/java/hprose/server/*.java
"%JDK8_PATH%\bin\jar.exe" cf dist/hprose_for_java_8.jar -C build .
del /Q build\hprose\server\*
rmdir build\hprose\server
del /Q build\hprose\common\HproseMethod.class
del /Q build\hprose\common\HproseMethods.class
"%JDK8_PATH%\bin\jar.exe" cf dist/hprose_client_for_java_8.jar -C build .
"%JDK9_PATH%\bin\javac.exe" --release 9 -Xlint:unchecked,-options -cp lib\javax.servlet-api-3.1.0.jar;lib\javax.websocket-api-1.1.jar -d build src/main/java/hprose/common/*.java src/main/java/hprose/util/*.java src/main/java/hprose/util/concurrent/*.java src/main/java/hprose/client/*.java src/main/java/hprose/io/*.java src/main/java/hprose/io/access/*.java src/main/java/hprose/io/convert/*.java src/main/java/hprose/io/convert/java8/*.java src/main/java/hprose/io/serialize/*.java src/main/java/hprose/io/serialize/java8/*.java src/main/java/hprose/io/unserialize/*.java src/main/java/hprose/io/unserialize/java8/*.java src/main/java/hprose/net/*.java src/main/java/hprose/server/*.java
"%JDK9_PATH%\bin\jar.exe" cf dist/hprose_for_java_9.jar -C build .
del /Q build\hprose\server\*
rmdir build\hprose\server
del /Q build\hprose\common\HproseMethod.class
del /Q build\hprose\common\HproseMethods.class
"%JDK9_PATH%\bin\jar.exe" cf dist/hprose_client_for_java_9.jar -C build .
"%JDK10_PATH%\bin\javac.exe" --release 10 -Xlint:unchecked,-options -cp lib\javax.servlet-api-3.1.0.jar;lib\javax.websocket-api-1.1.jar -d build src/main/java/hprose/common/*.java src/main/java/hprose/util/*.java src/main/java/hprose/util/concurrent/*.java src/main/java/hprose/client/*.java src/main/java/hprose/io/*.java src/main/java/hprose/io/access/*.java src/main/java/hprose/io/convert/*.java src/main/java/hprose/io/convert/java8/*.java src/main/java/hprose/io/serialize/*.java src/main/java/hprose/io/serialize/java8/*.java src/main/java/hprose/io/unserialize/*.java src/main/java/hprose/io/unserialize/java8/*.java src/main/java/hprose/net/*.java src/main/java/hprose/server/*.java
"%JDK10_PATH%\bin\jar.exe" cf dist/hprose_for_java_10.jar -C build .
del /Q build\hprose\server\*
rmdir build\hprose\server
del /Q build\hprose\common\HproseMethod.class
del /Q build\hprose\common\HproseMethods.class
"%JDK10_PATH%\bin\jar.exe" cf dist/hprose_client_for_java_10.jar -C build .
del /F/S/Q build 1>NUL
rd /S/Q build 1>NUL