#!/bin/bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use this file except in compliance with # the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. export REPO_BASE=https://repository.apache.org/content/repositories/orgapacheamber export REPO_ID=${1} export VERSION=${2} function grab { ARTIFACT_ID=${1} PACKAGING=${2} wget --no-check-certificate ${REPO_BASE}-${REPO_ID}/org/apache/amber/${ARTIFACT_ID}/${VERSION}/${ARTIFACT_ID}-${VERSION}.${PACKAGING} } function grabAll { ARTIFACT_ID=${1} for type in zip tar.gz; do grab ${ARTIFACT_ID} ${type} for ext in asc md5 sha1; do grab ${ARTIFACT_ID} ${type}.${ext} done done } cd sources grabAll amber-sources cd ../binaries grabAll amber-oauth2-authzserver grabAll amber-oauth2-client grabAll amber-oauth2-client-demo grabAll amber-oauth2-dynamicreg-client grabAll amber-oauth2-dynamicreg-server grabAll amber-oauth2-httpclient4 grabAll amber-oauth2-resourceserver grabAll amber-oauth2-resourceserver-filter