You need to install a JDK, for example the Sun JDK version 1.4, 1.5 or 1.6. On the command line, go to the directory h2 and execute the following command:
@build_1023_p
@build_1026_p
For Linux and OS X, use <code>./build.sh</code> instead of <code>build</code> .
@build_1024_p
@build_1027_p
You will get a list of targets. If you want to build the jar file, execute (Windows):
@build_1025_h3
@build_1028_h3
Switching the Source Code
@build_1026_p
@build_1029_p
By default the source code uses Java 1.5 features, however Java 1.4 and 1.5 are supported as well. To switch the source code to the install version of Java, run:
@build_1027_h2
@build_1030_h2
Build Targets
@build_1028_p
@build_1031_p
The build system can generate smaller jar files as well. The following targets are currently supported:
@build_1029_li
@build_1032_li
jarClient: Create the h2client.jar. This only contains the JDBC client.
@build_1030_li
@build_1033_li
jarSmall: Create the file h2small.jar. This only contains the embedded database. Debug information is disabled.
@build_1031_li
@build_1034_li
jarJaqu: Create the file h2jaqu.jar. This only contains the JaQu (Java Query) implementation. All other jar files do not include JaQu.
@build_1032_li
@build_1035_li
javadocImpl: Create the Javadocs of the implementation.
@build_1033_p
@build_1036_p
To create the h2client.jar file, go to the directory h2 and execute the following command:
@build_1034_h2
@build_1037_h2
Using Maven 2
@build_1035_h3
@build_1038_h3
Using a Central Repository
@build_1036_p
@build_1039_p
You can include the database in your Maven 2 project as a dependency. Example:
@build_1037_p
@build_1040_p
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.
@build_1038_h3
@build_1041_h3
Using Snapshot Version
@build_1039_p
@build_1042_p
To build a 'snapshot' H2 .jar file and upload it the to the local Maven 2 repository, execute the following command:
@build_1040_p
@build_1043_p
Afterwards, you can include the database in your Maven 2 project as a dependency:
@build_1041_h2
@build_1044_h2
Translating
@build_1042_p
@build_1045_p
The 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 <code>build docs</code> .
@build_1047_h2
@build_1050_h2
Providing Patches
@build_1048_p
@build_1051_p
If you like to provide patches, please consider the following guidelines to simplify merging them:
@build_1049_li
@build_1052_li
Only use Java 1.4 features (do not use Java 1.5 or 1.6) (see Environment).
@build_1050_li
@build_1053_li
Follow the coding style used in the project, and use Checkstyle (see above) to verify. For example, do not use tabs (use spaces instead). The checkstyle configuration is in <code>src/installer/checkstyle.xml</code> .
@build_1051_li
@build_1054_li
Please provide test cases and integrate them into the test suite. For Java level tests, see <code>src/test/org/h2/test/TestAll.java</code> . For SQL level tests, see <code>src/test/org/h2/test/test.in.txt</code> or <code>testSimple.in.txt</code> .
@build_1052_li
The test cases should cover at least 90% of the changed and new code; use a code coverage tool to verify that (see above).
@build_1055_li
The test cases should cover at least 90% of the changed and new code; use a code coverage tool to verify that (see above). or use the build target 'coverage'.
@build_1053_li
@build_1056_li
Verify that you did not break other features: Run the test cases by executing <code>build test</code> .
@build_1054_li
@build_1057_li
Provide end user documentation if required ( <code>src/docsrc/html/*</code> ).
@build_1055_li
@build_1058_li
Document grammar changes in <code>src/main/org/h2/res/help.csv</code>
@build_1056_li
@build_1059_li
Provide a change log entry ( <code>src/docsrc/html/changelog.html</code> ).
@build_1057_li
@build_1060_li
Verify the spelling using <code>build spellcheck</code> . If required add the new words to <code>src/tools/org/h2/build/doc/dictionary.txt</code> .
@build_1058_li
@build_1061_li
Verify the formatting using <code>build docs</code> and <code>build javadoc</code> .
@build_1059_li
@build_1062_li
Submit patches as .patch files (compressed if big). To create a patch using Eclipse, use Team / Create Patch.
@build_1063_h2
Code Coverage
@build_1064_p
To generate the code coverage data, execute the following command:
@build_1065_p
The code coverage is run regularly, the last results are available here:
@build_1066_a
Overall Coverage Summary
@build_1067_a
Details (download, 1.3 MB)
@changelog_1000_h1
Change Log
...
...
@@ -1142,7 +1166,7 @@ Change Log
Next Version (unreleased)
@changelog_1002_li
-
A file system implementation can now be registered using FileSystem.register. The database file system is no longer included in the jar file, it moved to the test section.
#You need to install a JDK, for example the Sun JDK version 1.4, 1.5 or 1.6. On the command line, go to the directory h2 and execute the following command:
@build_1023_p
@build_1026_p
#For Linux and OS X, use <code>./build.sh</code> instead of <code>build</code> .
@build_1024_p
@build_1027_p
#You will get a list of targets. If you want to build the jar file, execute (Windows):
@build_1025_h3
@build_1028_h3
#Switching the Source Code
@build_1026_p
@build_1029_p
#By default the source code uses Java 1.5 features, however Java 1.4 and 1.5 are supported as well. To switch the source code to the install version of Java, run:
@build_1027_h2
@build_1030_h2
#Build Targets
@build_1028_p
@build_1031_p
#The build system can generate smaller jar files as well. The following targets are currently supported:
@build_1029_li
@build_1032_li
#jarClient: Create the h2client.jar. This only contains the JDBC client.
@build_1030_li
@build_1033_li
#jarSmall: Create the file h2small.jar. This only contains the embedded database. Debug information is disabled.
@build_1031_li
@build_1034_li
#jarJaqu: Create the file h2jaqu.jar. This only contains the JaQu (Java Query) implementation. All other jar files do not include JaQu.
@build_1032_li
@build_1035_li
#javadocImpl: Create the Javadocs of the implementation.
@build_1033_p
@build_1036_p
#To create the h2client.jar file, go to the directory h2 and execute the following command:
@build_1034_h2
@build_1037_h2
Maven 2 の利用
@build_1035_h3
@build_1038_h3
Centralリポジトリの利用
@build_1036_p
@build_1039_p
依存関係を取ることで、Maven 2プロジェクトでデータベースを組み込むことも可能です。例:
@build_1037_p
@build_1040_p
#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.
#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 <code>build docs</code> .
@build_1047_h2
@build_1050_h2
#Providing Patches
@build_1048_p
@build_1051_p
#If you like to provide patches, please consider the following guidelines to simplify merging them:
@build_1049_li
@build_1052_li
#Only use Java 1.4 features (do not use Java 1.5 or 1.6) (see Environment).
@build_1050_li
@build_1053_li
#Follow the coding style used in the project, and use Checkstyle (see above) to verify. For example, do not use tabs (use spaces instead). The checkstyle configuration is in <code>src/installer/checkstyle.xml</code> .
@build_1051_li
@build_1054_li
#Please provide test cases and integrate them into the test suite. For Java level tests, see <code>src/test/org/h2/test/TestAll.java</code> . For SQL level tests, see <code>src/test/org/h2/test/test.in.txt</code> or <code>testSimple.in.txt</code> .
@build_1052_li
#The test cases should cover at least 90% of the changed and new code; use a code coverage tool to verify that (see above).
@build_1055_li
#The test cases should cover at least 90% of the changed and new code; use a code coverage tool to verify that (see above). or use the build target 'coverage'.
@build_1053_li
@build_1056_li
#Verify that you did not break other features: Run the test cases by executing <code>build test</code> .
@build_1054_li
@build_1057_li
#Provide end user documentation if required ( <code>src/docsrc/html/*</code> ).
@build_1055_li
@build_1058_li
#Document grammar changes in <code>src/main/org/h2/res/help.csv</code>
@build_1056_li
@build_1059_li
#Provide a change log entry ( <code>src/docsrc/html/changelog.html</code> ).
@build_1057_li
@build_1060_li
#Verify the spelling using <code>build spellcheck</code> . If required add the new words to <code>src/tools/org/h2/build/doc/dictionary.txt</code> .
@build_1058_li
@build_1061_li
#Verify the formatting using <code>build docs</code> and <code>build javadoc</code> .
@build_1059_li
@build_1062_li
#Submit patches as .patch files (compressed if big). To create a patch using Eclipse, use Team / Create Patch.
@build_1063_h2
#Code Coverage
@build_1064_p
#To generate the code coverage data, execute the following command:
@build_1065_p
#The code coverage is run regularly, the last results are available here:
@build_1066_a
#Overall Coverage Summary
@build_1067_a
#Details (download, 1.3 MB)
@changelog_1000_h1
変更履歴
...
...
@@ -1144,7 +1168,7 @@ Centralリポジトリの利用
#Next Version (unreleased)
@changelog_1002_li
#-
#A file system implementation can now be registered using FileSystem.register. The database file system is no longer included in the jar file, it moved to the test section.