Remove the redundant gss top-level directory.
[pithos] / BUILD.txt
1 Building GSS requires the following software installed:\r
2 \r
3 - Java Development Kit version 1.6.\r
4 - Apache Ant version 1.7.\r
5 - Google Web Toolkit version 1.5.\r
6 - JBoss Application Server version 5.0.0 built with JDK 1.6.\r
7 - JUnit version 3.\r
8 \r
9 \r
10 Building from the command line\r
11 ------------------------------\r
12 \r
13 Create a build.properties file with the following variables, set to the appropriate paths for your system:\r
14 \r
15 build.properties:\r
16 \r
17 jboss.version=5.0.0\r
18 jboss.home=/path/to/development/deployment/jboss-5.0.0.GA\r
19 jboss.prod.home=/path/to/production/deployment/jboss-5.0.0.GA\r
20 gwt.path=/path/to/gwt-windows-1.5.3\r
21 junit.path=/path/to/junit\r
22 \r
23 Run "ant".\r
24 \r
25 Alternatively, you can set them in the command line, or specify them as environment variables:\r
26 \r
27 ant -Djboss.version=5.0.0 -Djboss.home=/path/to/jboss-5.0.0.GA -Dgwt.path=/path/to/gwt-windows-1.5.3 -Djunit.path=/path/to/junit\r
28 \r
29 The final build artifact is the file "gss.ear" in the directory "bin", which has already been deployed to the server.\r
30 \r
31 \r
32 Running the server\r
33 ------------------\r
34 \r
35 Before running the server for the first time, some configuration files must be installed. This can be accomplished by running "ant install" (with the already mentioned variables set, as above). Then just start JBoss with the default configuration.\r
36 \r
37 \r
38 Building from Eclipse\r
39 ---------------------\r
40 \r
41 In Eclipse the following User Libraries must be defined:\r
42 \r
43 GWT Dev Library (pointing to gwt-dev-{windows,mac,linux}.jar)\r
44 GWT User Library (pointing to gwt-user.jar)\r
45 GWT Servlet Library (pointing to gwt-servlet.jar)\r
46 JBoss 5 lib (pointing to all the jars in ${jboss.home}/lib\r
47 JBoss 5 common lib (pointing to to all the jars in ${jboss.home}/common/lib)\r
48 \r
49 Furthermore the ant variables mentioned above must be set as well.\r
50 \r
51 \r
52 Deploying to production\r
53 -----------------------\r
54 \r
55 First of all, make sure the database is ready for gss. This entails configuring the database to accept connections from the application server and create the appropriate database and user:\r
56 \r
57 # create user gss with password 'gss';\r
58 # create database gssdb owner gss encoding 'UTF8';\r
59 \r
60 Then make sure the path to the production server is specified in build.properties (jboss.prod.home). Also make sure that the permissions in the jboss directory and subdirectories are properly set for the system user that the service will run as.\r
61 Run "ant install-production" to install the JBoss configuration files for the deployment server.\r
62 Run "ant deploy-production" to copy the build artifact (gss.ear) to the deployment server.\r
63 Copy the jboss init script to the proper place for the host operating system. Modify the various variables defined in the start of the run script as necessary.\r
64 \r
65 For Debian:\r
66 \r
67 # cp /path/to/production/deployment/jboss-5.0.0.GA/bin/jboss_init_debian.sh /etc/init.d/jboss\r
68 # chmod +x /etc/init.d/jboss\r
69 # update-rc.d jboss defaults\r
70 \r
71 \r
72 Installing the indexing service\r
73 -------------------------------\r
74 \r
75 Download the Solr 1.3.0 binary from one of its mirrors and then download and install the patch mentioned in this page:\r
76 \r
77 http://wiki.apache.org/solr/UpdateRichDocuments\r
78 \r
79 Follow the instructions on How To Install to patch Solr with the file rich.patch. \r
80 Copy the solr init script to the proper place for the host operating system. Modify the various variables defined in the start of the run script as necessary.\r
81 \r
82 For Debian:\r
83 \r
84 # cp solr/bin/solr /etc/init.d/solr\r
85 # chmod +x /etc/init.d/solr\r
86 # update-rc.d solr defaults\r