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 Software
You 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 build -?
For Linux and OS X, use
You will get a list of targets. If you want to build the 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 installed 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 file 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 Version
To build a 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 Providing PatchesIf you like to provide patches, please consider the following guidelines to simplify merging them:
For legal reasons, patches need to be public in the form of an email to the group, or in the form of an issue report or attachment. Significant contributions need to include the following statement: "I wrote the code, it's mine, and I'm contributing it to H2 for distribution multiple-licensed under the H2 License, version 1.0, and under the Eclipse Public License, version 1.0 (http://h2database.com/html/license.html)." Automated Build
This build process is automated and runs regularly.
The build process includes running the tests and code coverage, using the command line
|