You are viewing a plain text version of this content. The canonical link for it is here.
Posted to m2-dev@maven.apache.org by jv...@apache.org on 2004/06/06 20:36:26 UTC
cvs commit: maven-components/maven-mboot/src/bash modello
jvanzyl 2004/06/06 11:36:26
Modified: maven-mboot/src/bash modello
Log:
Revision Changes Path
1.7 +6 -2 maven-components/maven-mboot/src/bash/modello
Index: modello
===================================================================
RCS file: /home/cvs/maven-components/maven-mboot/src/bash/modello,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- modello 17 Apr 2004 15:29:28 -0000 1.6
+++ modello 6 Jun 2004 18:36:26 -0000 1.7
@@ -4,7 +4,7 @@
usage ()
{
- echo "usage: `basename $0` --model=<model> --version=<version> --mode=java|xsd|xpp3 --dir=<dir>" >&2
+ echo "usage: `basename $0` --model=<model> --version=<version> --mode=java|xsd|xpp3 --dir=<dir> --package-with-version" >&2
echo "" >&2
echo " (ex: `basename $0` --model=model.mdo --version=4.0.0 --mode=java --dir=target/src)" >&2
exit 1
@@ -14,6 +14,7 @@
model="model.mdo"
model_version=""
mode="java"
+package_with_version=false
while [ $# -gt 0 ]; do
case $1 in
@@ -55,6 +56,9 @@
shift
fi
;;
+ --package-with-version)
+ package_with_version=true
+ ;;
esac
shift
@@ -76,4 +80,4 @@
CP=`cygpath -pw "$CP"`
fi
-java -classpath "$CP" org.codehaus.modello.Modello $model $mode "$dir" "$model_version"
+java -classpath "$CP" org.codehaus.modello.Modello $model $mode "$dir" "$model_version" "$package_with_version"