o only download snapshots when the files already exist in the local

repository.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162579 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2004-03-08 17:21:09 +00:00
parent 1ccda33877
commit d696df54d9
2 changed files with 15 additions and 3 deletions

View File

@ -11,7 +11,10 @@ downloadMBootDependencies()
for i in `cat ${MBOOT_HOME}/deps`
do
if [ ! -f $repoLocal/$i ]
echo $i | grep SNAPSHOT > /dev/null 2>&1
snapshot=$?
if [ "$snapshot" = "0" ] || [ ! -f $repoLocal/$i ]
then
mkdir -p `dirname $repoLocal/$i` > /dev/null 2>&1
wget http://www.ibiblio.org/maven/$i -O $repoLocal/$i

View File

@ -12,6 +12,7 @@ usage ()
dir="target/src/java"
model="model.mdo"
mode="java"
leaveBootFiles="0"
install="0"
@ -43,6 +44,14 @@ while [ $# -gt 0 ]; do
shift
fi
;;
--mode*)
if echo $1 | grep -q '=' ; then
mode=`echo $1 | sed 's/^--mode=//'`
else
mode=$2
shift
fi
;;
esac
shift
@ -60,4 +69,4 @@ findAndSetMavenRepoLocal
CP=$repoLocal/modello/jars/modello-1.0-SNAPSHOT.jar:$repoLocal/xstream/jars/xstream-1.0-SNAPSHOT.jar:$repoLocal/xpp3/jars/xpp3-1.1.3.3.jar
java -classpath $CP org.codehaus.modello.Modello $model $dir
java -classpath $CP org.codehaus.modello.Modello $model $mode $dir