2004-03-07 20:31:17 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
2004-06-06 00:49:37 -04:00
|
|
|
rm -rf target
|
|
|
|
|
2004-08-09 11:40:26 -04:00
|
|
|
model=maven.mdo.new
|
|
|
|
|
2004-03-07 20:31:17 -05:00
|
|
|
# Generate the sources from the model
|
2004-08-09 11:40:26 -04:00
|
|
|
modello --model=$model --version=4.0.0 --mode=java --dir=target/generated-sources
|
2004-07-17 21:22:49 -04:00
|
|
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
2004-03-07 20:31:17 -05:00
|
|
|
|
2004-03-10 15:45:24 -05:00
|
|
|
# Generate the source for the xpp3 marshaller and unmarshaller
|
2004-08-09 11:40:26 -04:00
|
|
|
modello --model=$model --version=4.0.0 --mode=xpp3 --dir=target/generated-sources
|
2004-07-17 21:22:49 -04:00
|
|
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
2004-03-07 20:31:17 -05:00
|
|
|
|
2004-06-06 01:52:30 -04:00
|
|
|
# Generate the 3.0.0 source from the model
|
2004-08-09 11:40:26 -04:00
|
|
|
modello --model=$model --version=3.0.0 --mode=java --dir=target/generated-sources --package-with-version
|
2004-07-17 21:22:49 -04:00
|
|
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
2004-06-06 01:52:30 -04:00
|
|
|
|
|
|
|
# Generate the 3.0.0 source for the xpp3 marshaller and unmarshaller
|
2004-08-09 11:40:26 -04:00
|
|
|
modello --model=$model --version=3.0.0 --mode=xpp3 --dir=target/generated-sources --package-with-version
|
2004-07-17 21:22:49 -04:00
|
|
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
2004-06-06 01:52:30 -04:00
|
|
|
|
2004-03-07 20:31:17 -05:00
|
|
|
# Generate XML Schema
|
2004-08-09 11:40:26 -04:00
|
|
|
modello --model=$model --version=4.0.0 --mode=xsd --dir=.
|
2004-07-17 21:22:49 -04:00
|
|
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
2004-03-07 20:31:17 -05:00
|
|
|
|
|
|
|
# Generate XDoc
|
2004-08-09 11:40:26 -04:00
|
|
|
modello --model=$model --version=4.0.0 --mode=xdoc --dir=target/generated-xdocs
|
2004-07-17 21:22:49 -04:00
|
|
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
2004-05-30 12:55:51 -04:00
|
|
|
|
|
|
|
# Build the sources
|
|
|
|
mboot --install
|
2004-07-17 21:22:49 -04:00
|
|
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|