-
Notifications
You must be signed in to change notification settings - Fork 18
/
copyFile.sh
31 lines (25 loc) · 1012 Bytes
/
copyFile.sh
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
#!/bin/bash
### 修改自己的目的参数
name=/Users/xujie/work/ymm/jar
currd=$(cd `dirname $0`; pwd)
function clearFile() {
for file in `ls $1`
do
if [ -d $1"/"$file ]; then
echo "deleting directory: " $1"/"$file
rm -ef $1"/"$file
else
echo "deleting file: " $1"/"$file
rm -rf $1"/"$file
fi
done
}
echo $name
echo $currd
clearFile $name
### 修改成自己的地址与包名
cp $currd/common/target/common-1.0.0-jar-with-dependencies.jar $name/common.jar
cp $currd/client/agent/target/agent-1.0.0-jar-with-dependencies.jar $name/agent.jar
cp $currd/client/client-bootstrap/target/client-bootstrap-1.0.0-jar-with-dependencies.jar $name/bootstrap.jar
cp $currd/client/plugins/simple-hotfix/target/simple-hotfix-1.0.0-jar-with-dependencies.jar $name/simplehotfix.jar
cp $currd/client/plugins/spring-plugin/target/spring-plugin-1.0.0-jar-with-dependencies.jar $name/springplugin.jar