21 Star 79 Fork 38

Hprose/hprose-java

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
make 1.21 KB
一键复制 编辑 原始数据 按行查看 历史
wangzhenxyz1 提交于 2017-02-07 01:34 . optimize shell bat script file
#!/bin/sh -x
init(){
rm -rf build
rm -rf dist
mkdir build
mkdir dist
}
buildByJdkVersion(){
javafiles="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"
if [ $1 -eq 8 ];then
javafiles="$javafiles src/main/java/hprose/io/convert/java8/*.java src/main/java/hprose/io/serialize/java8/*.java src/main/java/hprose/io/unserialize/java8/*.java"
fi
javac -source $1 -target $1 -Xlint:unchecked,-options -cp lib/javax.servlet-api-3.1.0.jar:lib/javax.websocket-api-1.1.jar -d build $javafiles 2>/dev/null
jar cf dist/hprose_for_java_$1.jar -C build .
rm -rf build/hprose/server
rm -f build/hprose/common/HproseMethod.class
rm -f build/hprose/common/HproseMethods.class
jar cf dist/hprose_client_for_java_$1.jar -C build .
}
clean(){
rm -rf build
}
init
for version in {5..8};do
buildByJdkVersion $version
done
clean
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/andot/hprose-java.git
git@gitee.com:andot/hprose-java.git
andot
hprose-java
hprose-java
master

搜索帮助