<!--
jbpm.db build script (jbpm.db 編譯腳本)
====================
The jbm.db build script consists of a few major sections(jbpm.db 編譯腳本包含一些主要部分):
- general setup (普通安裝)
- common tasks (公用任務)
- database specific tasks (數據庫特定任務)
A database specific task calls common tasks with the database name as a parameter
and carries out its duties. (一個數據庫特定任務調用公有的任務使用數據庫名作為一個參數,并且執行它的職責。)
The main tasks are the database script creation and the database test run.(主要的任務是數據庫腳本創建和數據庫測試運行)
Following is a explanation of the flow for both. They start off with the same steps.
The explanation with use hsqldb as an example.(下面是一個流程的說明。他們開始使用同樣的步驟)
1. "prepare" target compiles all jbpm.3 classes ("prepare" 目標編譯所有的jbpm3.classes )
2. "hsqldb.prepare" target calls the "db.prepare" target with the parameter "hsqldb" ("hsqldb.prepare" 目標調用"db.prepare"目標使用"hsqldb"參數)
3. "db.prepare" copies the resources tree from the jbpm.3 project and ()
4. sources the property file hsqldb/hibernate.properties and replaces the
properties from the main project in the copied hibernate config file with
properties from the file making it database specific to the test settings using
"hibernate.replace". This differs per database.
("db.prepare"從jbpm.3項目和 hsqldb/hibernate.properties 屬性文件復制資源目錄,并從在復制的擁有從文件屬性的hibernate配置文件中的主項目替換這些屬性,使用數據庫特定給test 的設置使用"hibernate.replace".這對每個數據庫是不同的 。
)
After this preparation the scripts targets (在這準備腳本目標之后)
5. "hsqldb.scripts" target calls the "db.scripts" target with the hsqldb parameter ("hsqldb.script"目標調用"db.script"目標使用hsqldb 參數)
6. "db.scripts" target creates the scripts files in the build/hsqldb/scripts folder based
on the db specific hibernate configuration
("db.scripts"目標創建腳本文件在db特定hibernate配置文件的build/hsql/scripts/目錄 或test目標文件 )
or the the test targets
5. "hsqldb.test" target calls the "db.test" target with the hsqldb parameter ("hsqldb.test" 目標調用"db.test"目標使用hsqldb參數)
6. "db.test" target runs all tests against the hsqldb database and creates a test report
in build/hsqldb/testresults
("db.test"目標運行所有的測試 靠著hsqldb 數據庫和測試報告)
-->