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