BuildPortabilityEnvironment Building the Software Build Targets Using Maven 2 Translating Providing Patches Automated Build PortabilityThis database is written in Java and therefore works on many platforms. It can also be compiled to a native executable using GCJ. EnvironmentA Java Runtime Environment (JRE) version 1.5 or higher is required to run this database. To build the database executables, the following software stack was used. Newer version or compatible software works too.
Building the SoftwareYou need to install a JDK, for example the Sun JDK version 1.5 or 1.6. Ensure that Java binary directory is included in the PATH environment variable, and that the environment variable JAVA_HOME points to your Java installation. On the command line, go to the directory h2 and execute the following command: build -?
For Linux and OS X, use You will get a list of targets. If you want to build the jar file, execute (Windows): build jar Switching the Source CodeBy default the source code uses Java 1.5 features, however Java 1.6 is supported as well. To switch the source code to the install version of Java, run: build switchSource Build TargetsThe build system can generate smaller jar files as well. The following targets are currently supported:
To create the h2client.jar file, go to the directory h2 and execute the following command: build jarClient Using Maven 2Using a Central RepositoryYou can include the database in your Maven 2 project as a dependency. Example: <dependency> <groupId>com.h2database</groupId> <artifactId>h2</artifactId> <version>${version}</version> </dependency> New versions of this database are first uploaded to http://hsql.sourceforge.net/m2-repo/ and then automatically synchronized with the main maven repository; however after a new release it may take a few hours before they are available there. Using Snapshot VersionTo build a 'snapshot' H2 .jar file and upload it the to the local Maven 2 repository, execute the following command: build mavenInstallLocal Afterwards, you can include the database in your Maven 2 project as a dependency: <dependency> <groupId>com.h2database</groupId> <artifactId>h2</artifactId> <version>1.0-SNAPSHOT</version> </dependency> TranslatingThe translation of this software is split into the following parts:
To translate the H2 Console, start it and select Preferences / Translate.
The conversion between UTF-8 and Java encoding (using the \u syntax), as well as the HTML entities (&#..;)
is automated by running the tool PropertiesToUTF8. The web site translation is automated as well,
using Providing PatchesIf you like to provide patches, please consider the following guidelines to simplify merging them:
Automated Build
This build process is automated and runs regularly.
The build process includes running the tests and code coverage, using the command line
|