You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by jv...@apache.org on 2004/03/08 02:12:32 UTC
cvs commit: maven-components/maven-mboot/src/bash modello maven.functions
jvanzyl 2004/03/07 17:12:32
Modified: maven-mboot/src/bash maven.functions
Added: maven-mboot/src/bash modello
Log:
o adding a script for modello which is now used to generate the maven model
sources from a modello model file.
Revision Changes Path
1.27 +2 -2 maven-components/maven-mboot/src/bash/maven.functions
Index: maven.functions
===================================================================
RCS file: /home/cvs/maven-components/maven-mboot/src/bash/maven.functions,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- maven.functions 8 Mar 2004 00:44:10 -0000 1.26
+++ maven.functions 8 Mar 2004 01:12:32 -0000 1.27
@@ -13,8 +13,8 @@
do
if [ ! -f $repoLocal/$i ]
then
- mkdir -p $repoLocal/$i > /dev/null 2>&1
- wget http://www.ibiblio.org/maven/$i $repoLocal/$i > /dev/null 2>&1
+ mkdir -p `dirname $repoLocal/$i` > /dev/null 2>&1
+ wget http://www.ibiblio.org/maven/$i -O $repoLocal/$i
fi
done
}
1.1 maven-components/maven-mboot/src/bash/modello
Index: modello
===================================================================
#!/bin/sh
VERSION=1.0
usage ()
{
echo "usage: `basename $0` --model=<model> --dir=<dir>" >&2
echo "" >&2
echo " (ex: `basename $0` --model=model.mdo --dir=target/src)" >&2
exit 1
}
dir="target/src/java"
model="model.mdo"
leaveBootFiles="0"
install="0"
while [ $# -gt 0 ]; do
case $1 in
--help)
usage
;;
--version)
echo "mboot: version $VERSION"
exit 0
;;
-v)
verbose=-v
;;
--dir*)
if echo $1 | grep -q '=' ; then
dir=`echo $1 | sed 's/^--dir=//'`
else
dir=$2
shift
fi
;;
--model*)
if echo $1 | grep -q '=' ; then
model=`echo $1 | sed 's/^--model=//'`
else
model=$2
shift
fi
;;
esac
shift
done
export MBOOT_HOME=`dirname $0`
. ${MBOOT_HOME}/maven.functions
[ ! -f $model ] && echo "Specified model doesn't exist!" && exit
[ ! -d $dir ] && mkdir -p $dir
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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org