-
Notifications
You must be signed in to change notification settings - Fork 0
/
tbt.txt
68 lines (50 loc) · 2.38 KB
/
tbt.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
Convert all files to UTF-8
--------------------------
https://www.tecmint.com/convert-files-to-utf-8-encoding-in-linux/
Generate web.xml
----------------
Currently I added file MySchool/src/main/webapp/WEB-INF/web.xml manually
This file should be generated - see OpenXava/build.xml target createWebXml
check / implement other targets
-------------------------------
- copyWeb
- installAddons
- filter
- createEditorsJS
Document how to change tomcat installation
------------------------------------------
1. Edit $CATALINA_HOME/conf/context.xml and add
<Resource name="jdbc/MySchoolDS" auth="Container" type="javax.sql.DataSource"
maxActive="20" maxIdle="5" maxWait="10000"
username="sa" password="" driverClassName="org.hsqldb.jdbcDriver"
url="jdbc:hsqldb:file:../data/my-school-db"/>
<!-- FIXME uncomment after data are copied
<Resource name="jdbc/OpenXavaTestDS" auth="Container" type="javax.sql.DataSource"
maxActive="20" maxIdle="5" maxWait="10000"
username="sa" password="" driverClassName="org.hsqldb.jdbcDriver"
url="jdbc:hsqldb:hsql://localhost:1555"/>
<Resource name="jdbc/InvoiceDemoDS" auth="Container" type="javax.sql.DataSource"
maxActive="20" maxIdle="5" maxWait="10000"
username="sa" password="" driverClassName="org.hsqldb.jdbcDriver"
url="jdbc:hsqldb:file:../data/invoice-demo-db"/>
-->
2. Copy hsqldb.jar to $CATALINA_HOME/lib/
wget http://central.maven.org/maven2/org/hsqldb/hsqldb/2.3.2/hsqldb-2.3.2.jar -O 2.3.2 -O $CATALINA_HOME/lib/hsqldb.jar
3. Copy data
mkdir -p $CATALINA_HOME/data
cp openxava-examples/MySchool/data/* $CATALINA_HOME/data/
#FIXME OpenXavaTest
#FIXME InvoiceDemo
Create script / ant task to customize tomcat installation
---------------------------------------------------------
FIXME
References
----------
http://openxava.wikispaces.com/maven-setup_en
https://sourceforge.net/p/openxava/feature-requests/88/
http://openxava.wikispaces.com/quick-start_en#Quick start-Execute the example application
http://minuteproject.blogspot.cz/2012/02/adding-spring-security-to-openxava.html
Git delete jars
https://rtyley.github.io/bfg-repo-cleaner/
https://stackoverflow.com/questions/4565057/prune-binary-data-from-a-git-repository-after-the-fact
https://stackoverflow.com/questions/15759198/removing-unwanted-files-from-history-including-all-refs-with-filter-branch/15924054#15924054