jvanzyl 2004/03/08 09:32:07 Modified: maven-mboot/src/bash modello Log: o allow the specification of the model version for the output of the artifacts Revision Changes Path 1.3 +10 -3 maven-components/maven-mboot/src/bash/modello Index: modello =================================================================== RCS file: /home/cvs/maven-components/maven-mboot/src/bash/modello,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- modello 8 Mar 2004 17:21:09 -0000 1.2 +++ modello 8 Mar 2004 17:32:07 -0000 1.3 @@ -12,9 +12,8 @@ dir="target/src/java" model="model.mdo" +model_version="" mode="java" -leaveBootFiles="0" -install="0" while [ $# -gt 0 ]; do case $1 in @@ -36,6 +35,14 @@ shift fi ;; + --model-version*) + if echo $1 | grep -q '=' ; then + model_version=`echo $1 | sed 's/^--model-version=//'` + else + model_version=$2 + shift + fi + ;; --model*) if echo $1 | grep -q '=' ; then model=`echo $1 | sed 's/^--model=//'` @@ -69,4 +76,4 @@ 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 $mode $dir +java -classpath $CP org.codehaus.modello.Modello $model $mode $dir $model_version
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]