Skip to content
Snippets Groups Projects
Commit f113593e authored by Patrick's avatar Patrick
Browse files

if zkJar not exist,it will download it.

parent ab850a49
No related branches found
No related tags found
No related merge requests found
......@@ -15,8 +15,10 @@
:: limitations under the License.
set zkJar=zookeeper-3.4.9-fatjar.jar
md remoting\zookeeper\zookeeper-4unittest\contrib\fatjar
curl -L https://github.com/dubbogo/resources/raw/master/zookeeper-4unitest/contrib/fatjar/%zkJar% -o remoting/zookeeper/zookeeper-4unittest/contrib/fatjar/%zkJar%
if not exist "remoting/zookeeper/zookeeper-4unittest/contrib/fatjar/%zkJar%" (
md remoting\zookeeper\zookeeper-4unittest\contrib\fatjar
curl -L https://github.com/dubbogo/resources/raw/master/zookeeper-4unitest/contrib/fatjar/%zkJar% -o remoting/zookeeper/zookeeper-4unittest/contrib/fatjar/%zkJar%
)
md config_center\zookeeper\zookeeper-4unittest\contrib\fatjar
xcopy /f "remoting/zookeeper/zookeeper-4unittest/contrib/fatjar/%zkJar%" "config_center/zookeeper/zookeeper-4unittest/contrib/fatjar/"
......
......@@ -14,18 +14,21 @@
# See the License for the specific language governing permissions and
# limitations under the License.
zkJar="zookeeper-3.4.9-fatjar.jar"
mkdir -p remoting/zookeeper/zookeeper-4unittest/contrib/fatjar
wget -P "remoting/zookeeper/zookeeper-4unittest/contrib/fatjar" https://github.com/dubbogo/resources/raw/master/zookeeper-4unitest/contrib/fatjar/zookeeper-3.4.9-fatjar.jar
if [ ! -f "remoting/zookeeper/zookeeper-4unittest/contrib/fatjar/${zkJar}" ]; then
mkdir -p remoting/zookeeper/zookeeper-4unittest/contrib/fatjar
wget -P "remoting/zookeeper/zookeeper-4unittest/contrib/fatjar" https://github.com/dubbogo/resources/raw/master/zookeeper-4unitest/contrib/fatjar${zkJar}
fi
mkdir -p config_center/zookeeper/zookeeper-4unittest/contrib/fatjar
cp remoting/zookeeper/zookeeper-4unittest/contrib/fatjar/zookeeper-3.4.9-fatjar.jar config_center/zookeeper/zookeeper-4unittest/contrib/fatjar/
cp remoting/zookeeper/zookeeper-4unittest/contrib/fatjar/${zkJar} config_center/zookeeper/zookeeper-4unittest/contrib/fatjar/
mkdir -p registry/zookeeper/zookeeper-4unittest/contrib/fatjar
cp remoting/zookeeper/zookeeper-4unittest/contrib/fatjar/zookeeper-3.4.9-fatjar.jar registry/zookeeper/zookeeper-4unittest/contrib/fatjar/
cp remoting/zookeeper/zookeeper-4unittest/contrib/fatjar/${zkJar} registry/zookeeper/zookeeper-4unittest/contrib/fatjar/
mkdir -p cluster/router/chain/zookeeper-4unittest/contrib/fatjar
cp remoting/zookeeper/zookeeper-4unittest/contrib/fatjar/zookeeper-3.4.9-fatjar.jar cluster/router/chain/zookeeper-4unittest/contrib/fatjar
cp remoting/zookeeper/zookeeper-4unittest/contrib/fatjar/${zkJar} cluster/router/chain/zookeeper-4unittest/contrib/fatjar
mkdir -p cluster/router/condition/zookeeper-4unittest/contrib/fatjar
cp remoting/zookeeper/zookeeper-4unittest/contrib/fatjar/zookeeper-3.4.9-fatjar.jar cluster/router/condition/zookeeper-4unittest/contrib/fatjar
\ No newline at end of file
cp remoting/zookeeper/zookeeper-4unittest/contrib/fatjar/${zkJar} cluster/router/condition/zookeeper-4unittest/contrib/fatjar
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment