It is expected that the user is familiar with both the Apache Maven project tool and the Apache Ant build tool.
The Graffito source code is available via Subversion at http://svn.apache.org/repos/asf/incubator/graffito/trunk
(anonymous access)
or with viewcvs.
Create an empty schema in your favorite DB system. Currently, we are supporting MySql, Oracle, MsSql, Hsql and Postgres.
Get more information the supported databases on this page.
If you are using HSQL, you can start a empty test db with the maven goal maven start.test.server
(from the svn trunk folder).
Please set these values in your ${USER_HOME}/build.properties
file. There is a sample file here.
Property | Example | What is it? |
---|---|---|
UNIT TEST SETTING | ||
org.apache.portals.graffito.test.database.default.name | mysql | oracle | mssql | hsql | postgres | Database type used for the Graffito Master Store in the test environment |
org.apache.portals.graffito.test.jetspeed | true | false | True if the Db is already used by a Jetspeed application. By this way, it is not necessary to create or drop the tables used by OJB or by the security service |
org.apache.portals.graffito.test.database.url | jdbc:mysql://127.0.0.1/graffitotest?dumpQueriesOnException=true | Url used to connect to the Graffito Master Store in the test environment |
org.apache.portals.graffito.test.database.driver | com.mysql.jdbc.Driver | JDBC Driver class name |
org.apache.portals.graffito.test.database.user | your-db-user | User name used to connect to the Test DB |
org.apache.portals.graffito.test.database.password | your-db-user-password | User password used to connect to the Test DB |
org.apache.portals.graffito.test.jdbc.drivers.path | C:/myjarpath/mysql/mysql-connector-java-3.1.4-beta-bin.jar | JDBC driver files used for the test DB |
PRODUCTION SETTING | ||
org.apache.portals.graffito.production.database.default.name | mysql | oracle | mssql | hsql | postgres | Database type used for the Graffito Master Store in the production environment |
org.apache.portals.graffito.production.jetspeed | true | false | True if the Db is already used by a Jetspeed application. By this way, it is not necessary to create or drop the tables used by OJB or by the security service |
org.apache.portals.graffito.production.database.url | jdbc:mysql://127.0.0.1/graffitotest?dumpQueriesOnException=true | Url used to connect to the Graffito Master Store in the production environment |
org.apache.portals.graffito.production.database.driver | com.mysql.jdbc.Driver | JDBC Driver class name |
org.apache.portals.graffito.production.database.user | your-db-user | User name used to connect to the production DB |
org.apache.portals.graffito.production.database.password | your-db-user-password | User password used to connect to the production DB |
org.apache.portals.graffito.production.jdbc.drivers.path | C:/myjarpath/mysql/mysql-connector-java-3.1.4-beta-bin.jar | JDBC driver files used for the production DB |