mirror of https://github.com/apache/maven.git
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:
parent
859b2cac34
commit
57922db9c9
|
@ -2,28 +2,30 @@
|
||||||
|
|
||||||
rm -rf target
|
rm -rf target
|
||||||
|
|
||||||
|
model=maven.mdo.new
|
||||||
|
|
||||||
# Generate the sources from the model
|
# 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
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
||||||
|
|
||||||
# Generate the source for the xpp3 marshaller and unmarshaller
|
# 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
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
||||||
|
|
||||||
# Generate the 3.0.0 source from the model
|
# 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
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
||||||
|
|
||||||
# Generate the 3.0.0 source for the xpp3 marshaller and unmarshaller
|
# 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
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
||||||
|
|
||||||
# Generate XML Schema
|
# 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
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
||||||
|
|
||||||
# Generate XDoc
|
# 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
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
||||||
|
|
||||||
# Build the sources
|
# Build the sources
|
||||||
|
|
Loading…
Reference in New Issue