/[volute]/trunk/projects/theory/snapdm/xjcIntermediateModel.sh
ViewVC logotype

Contents of /trunk/projects/theory/snapdm/xjcIntermediateModel.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 465 - (show annotations)
Mon May 12 16:19:59 2008 UTC (12 years, 6 months ago) by bourges.laurent
File MIME type: application/x-sh
File size: 910 byte(s)
- updated build
- update jdbc jpa
- identity class in MetaDataObject
- javadoc moved to /dist/doc
1 # This shell script uses JAXB 2.1 XJC compiler to produce Java code for the intermediate model xml schema
2
3 # The goal is to have the intermediate model document available as Java Beans.
4
5 DIR=`pwd`
6 DIR_GEN=$DIR/src/
7
8 # Add your JAXB library path here :
9 export PATH=/java/jaxb-ri-20070917/bin:$PATH
10
11
12
13
14 # Creates and displays output directory
15
16 #rm -rf $DIR_GEN
17 #mkdir $DIR_GEN
18
19 echo
20 echo Generation output : $DIR_GEN
21 echo
22
23
24
25
26 # Checks jaxb 2.1 & options
27
28 xjc.sh -version 2> xjc-version.txt
29 xjc.sh -help > xjc-help.txt
30
31 JAXB=`cat xjc-version.txt`
32
33 echo
34 echo JAXB Version :
35 echo $JAXB
36 echo
37
38
39
40
41 # Starts jaxb 2.1
42 xjc.sh -d $DIR_GEN -p org.ivoa.metamodel -no-header -readOnly -verbose ./input/intermediateModel.xsd
43
44 if [ "$?" -ne "0" ]; then
45 echo "Sorry, cannot Generate code with xjc (jaxb 2.1 needed). Fix previous errors and try again ..."
46 exit 1
47 fi
48
49
50
51
52 # End :
53 echo
54 echo Generation done in $DIR_GEN
55 echo
56

Properties

Name Value
svn:executable *

msdemlei@ari.uni-heidelberg.de
ViewVC Help
Powered by ViewVC 1.1.26