Can now parse the following expressions - a mix of bkeeping, xml and xpath:
[Bookkeeping.git] / bkell.sh
blob1cec1daa5d96c3eb68ae0ea637d7fca9f1030688
1 #!/bin/bash
3 export BK_HOME=.
4 export CP="\
5 .:\
6 $BK_HOME/xml/:\
7 $BK_HOME/build/gen:\
8 $BK_HOME/build/src:\
9 $BK_HOME/build/test:\
10 $BK_HOME/lib/spittoon/spittoon.jar:\
11 $BK_HOME/lib/zob/AntelopeTasks_3.2.19.jar:\
12 $BK_HOME/lib/zob/bob.jar:\
13 $BK_HOME/lib/zob/commons-cli-1.0.jar:\
14 $BK_HOME/lib/zob/commons-logging-api.jar:\
15 $BK_HOME/lib/zob/commons-logging.jar:\
16 $BK_HOME/lib/zob/javafind.jar:\
17 $BK_HOME/lib/zob/junit.jar:\
18 $BK_HOME/lib/zob/Piccolo-1.0.4.jar:\
19 $BK_HOME/lib/zob/sablecc.jar:\
20 $BK_HOME/lib/zob/velocity-1.3.1.jar:\
21 $BK_HOME/lib/zob/velocity-dep-1.3.1.jar:\
22 $BK_HOME/lib/:\
23 $BK_HOME/lib/cactus/:\
24 $BK_HOME/lib/cactus/aspectjrt-1.2.1.jar:\
25 $BK_HOME/lib/cactus/cactus-1.7.2.jar:\
26 $BK_HOME/lib/cactus/cactus-ant-1.7.2.jar:\
27 $BK_HOME/lib/cactus/cargo-0.5.jar:\
28 $BK_HOME/lib/cactus/commons-httpclient-2.0.2.jar:\
29 $BK_HOME/lib/cactus/commons-logging-1.0.4.jar:\
30 $BK_HOME/lib/cactus/httpunit-1.6.jar:\
31 $BK_HOME/lib/cactus/junit-3.8.1.jar:\
32 $BK_HOME/lib/cactus/nekohtml-0.9.1.jar:\
33 $BK_HOME/lib/cactus/servletapi-2.2.jar:\
34 $BK_HOME/lib/cactus/servletapi-2.3.jar:\
35 $BK_HOME/lib/endorsed/resolver-1.2.jar:\
36 $BK_HOME/lib/endorsed/serializer-2.9.1.jar:\
37 $BK_HOME/lib/endorsed/xalan-2.7.1.jar:\
38 $BK_HOME/lib/endorsed/xercesImpl-2.9.1.jar:\
39 $BK_HOME/lib/endorsed/xml-apis.jar:\
40 $BK_HOME/lib/exist/core/antlr-2.7.6.jar:\
41 $BK_HOME/lib/exist/core/commons-collections-3.1.jar:\
42 $BK_HOME/lib/exist/core/commons-logging-1.0.4.jar:\
43 $BK_HOME/lib/exist/core/commons-pool-1.4.jar:\
44 $BK_HOME/lib/exist/core/excalibur-cli-1.0.jar:\
45 $BK_HOME/lib/exist/core/javax.servlet-1.4.jar:\
46 $BK_HOME/lib/exist/core/jEdit-syntax.jar:\
47 $BK_HOME/lib/exist/core/jgroups-all.jar:\
48 $BK_HOME/lib/exist/core/jline-0_9_5.jar:\
49 $BK_HOME/lib/exist/core/jta.jar:\
50 $BK_HOME/lib/exist/core/log4j-1.2.15.jar:\
51 $BK_HOME/lib/exist/core/quartz-1.6.0.jar:\
52 $BK_HOME/lib/exist/core/stax-api-1.0.1.jar:\
53 $BK_HOME/lib/exist/core/sunxacml.jar:\
54 $BK_HOME/lib/exist/core/xmldb.jar:\
55 $BK_HOME/lib/exist/core/xmlrpc-1.2-patched.jar:\
56 $BK_HOME/lib/exist/exist-optional.jar:\
57 $BK_HOME/lib/exist/exist.jar:\
58 $BK_HOME/lib/exist/extensions/exist-jmx.jar:\
59 $BK_HOME/lib/exist/extensions/exist-modules.jar:\
60 $BK_HOME/lib/exist/extensions/exist-ngram-module.jar:\
61 $BK_HOME/lib/exist/optional/axis-ant.jar:\
62 $BK_HOME/lib/exist/optional/axis-schema.jar:\
63 $BK_HOME/lib/exist/optional/axis.jar:\
64 $BK_HOME/lib/exist/optional/commons-codec-1.3.jar:\
65 $BK_HOME/lib/exist/optional/commons-discovery-0.4.jar:\
66 $BK_HOME/lib/exist/optional/commons-fileupload-1.1.1.jar:\
67 $BK_HOME/lib/exist/optional/commons-httpclient-3.0.1.jar:\
68 $BK_HOME/lib/exist/optional/commons-io-1.3.jar:\
69 $BK_HOME/lib/exist/optional/jaxrpc.jar:\
70 $BK_HOME/lib/exist/optional/saaj.jar:\
71 $BK_HOME/lib/exist/optional/wsdl4j-1.5.1.jar:\
72 $BK_HOME/lib/exist/start.jar:\
73 $BK_HOME/lib/exist/user/nekohtml-0.9.5.jar:\
74 $BK_HOME/lib/htmlunit/commons-codec-1.3.jar:\
75 $BK_HOME/lib/htmlunit/commons-collections-3.2.jar:\
76 $BK_HOME/lib/htmlunit/commons-httpclient-3.0.1.jar:\
77 $BK_HOME/lib/htmlunit/commons-io-1.3.1.jar:\
78 $BK_HOME/lib/htmlunit/commons-lang-2.3.jar:\
79 $BK_HOME/lib/htmlunit/commons-logging-1.1.jar:\
80 $BK_HOME/lib/htmlunit/htmlunit-1.13.jar:\
81 $BK_HOME/lib/htmlunit/jaxen-1.1.1.jar:\
82 $BK_HOME/lib/htmlunit/js-1.6R5.jar:\
83 $BK_HOME/lib/htmlunit/nekohtml-0.9.5.jar:\
84 $BK_HOME/lib/htmlunit/xercesImpl-2.6.2.jar:\
85 $BK_HOME/lib/htmlunit/xmlParserAPIs-2.6.2.jar:\
86 $BK_HOME/lib/log4j-1.2.7.jar:\
87 $BK_HOME/lib/servlet-api-2.5-6.0.0rc0.jar:\
88 $BK_HOME/lib/xpath20/sablecc-anttask.jar:\
89 $BK_HOME/lib/xpath20/sablecc.jar"
91 #export DBURL="xmldb:exist://localhost:8080/exist/xmlrpc/db/bookkeeping/"
92 export DBURL="xmldb:exist:///db/"
95 # embed the exist DB
96 java -classpath $CP -Ddb.url=$DBURL -Dexist.initdb="true" -Dexist.home="." -Dorg.xml.sax.features.validation="false" -Djava.endorsed.dirs="lib/endorsed" -d32 -client com.interrupt.bookkeeping.cc.bkell.Bkell
99 # $BK_HOME/build/bookkeeping.jar"
100 # $BK_HOME/build/gen:\
101 # $BK_HOME/build/src:\
102 # $BK_HOME/build/test"
103 #java -classpath $CP -Ddb.url=$DBURL -Dexist.initdb="true" -Dexist.home="." -Dorg.xml.sax.features.validation="false" -Djava.endorsed.dirs="lib/endorsed" com.interrupt.bookkeeping.Deleteme