o Making it easier to change the model file.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162913 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Trygve Laugstol 2004-08-09 15:40:26 +00:00
parent 859b2cac34
commit 57922db9c9
1 changed files with 8 additions and 6 deletions

View File

@ -2,28 +2,30 @@
rm -rf target
model=maven.mdo.new
# Generate the sources from the model
modello --model=maven.mdo --version=4.0.0 --mode=java --dir=target/generated-sources
modello --model=$model --version=4.0.0 --mode=java --dir=target/generated-sources
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
# Generate the source for the xpp3 marshaller and unmarshaller
modello --model=maven.mdo --version=4.0.0 --mode=xpp3 --dir=target/generated-sources
modello --model=$model --version=4.0.0 --mode=xpp3 --dir=target/generated-sources
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
# Generate the 3.0.0 source from the model
modello --model=maven.mdo --version=3.0.0 --mode=java --dir=target/generated-sources --package-with-version
modello --model=$model --version=3.0.0 --mode=java --dir=target/generated-sources --package-with-version
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
# Generate the 3.0.0 source for the xpp3 marshaller and unmarshaller
modello --model=maven.mdo --version=3.0.0 --mode=xpp3 --dir=target/generated-sources --package-with-version
modello --model=$model --version=3.0.0 --mode=xpp3 --dir=target/generated-sources --package-with-version
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
# Generate XML Schema
modello --model=maven.mdo --version=4.0.0 --mode=xsd --dir=.
modello --model=$model --version=4.0.0 --mode=xsd --dir=.
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
# Generate XDoc
modello --model=maven.mdo --version=4.0.0 --mode=xdoc --dir=target/generated-xdocs
modello --model=$model --version=4.0.0 --mode=xdoc --dir=target/generated-xdocs
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
# Build the sources