mirror of https://github.com/apache/maven.git
o allow the specification of the model version for the output of the artifacts
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162581 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9383518453
commit
9ddf6696c1
|
@ -12,9 +12,8 @@ usage ()
|
|||
|
||||
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 @@ while [ $# -gt 0 ]; do
|
|||
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 @@ 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 $mode $dir
|
||||
java -classpath $CP org.codehaus.modello.Modello $model $mode $dir $model_version
|
||||
|
|
Loading…
Reference in New Issue