summaryrefslogtreecommitdiff
path: root/build.xml
diff options
context:
space:
mode:
authorwei <>2007-04-14 05:02:29 +0000
committerwei <>2007-04-14 05:02:29 +0000
commit0f0d3c62e608287cdf77f1a3239371b521ecb40b (patch)
treebd91a9499a946e1667a0e17a9c5a97a9d695c7ce /build.xml
parentb05442bbe751b87998d8500ad8e6b28d652a35db (diff)
Refactor ActiveRecordGateway to use TDataGatewayCommand
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml80
1 files changed, 79 insertions, 1 deletions
diff --git a/build.xml b/build.xml
index 40000661..8b6db816 100644
--- a/build.xml
+++ b/build.xml
@@ -24,6 +24,8 @@
<property name="zip" value="zip" /> <!-- zip compression -->
<property name="pkgname" value="${phing.project.name}-${prado.version}.r${prado.revision}"/>
+
+ <property name="compact-strip-comments" value="false" />
<property name="build.base.dir" value="build"/>
<property name="build.dist.dir" value="${build.base.dir}/dist"/>
@@ -33,7 +35,8 @@
<property name="build.web.dir" value="${build.base.dir}/web"/>
<property name="build.test.dir" value="${build.base.dir}/test-reports"/>
<property name="build.coverage.dir" value="${build.base.dir}/code-coverage"/>
- <property name="build.snapshot.dir" value="${build.base.dir}/snapshot"/>
+ <property name="build.snapshot.dir" value="${build.base.dir}/snapshot"/>
+ <property name="build.compact.dir" value="${build.base.dir}/compact/${pkgname}" />
<!--
All Source Files in framework
@@ -142,7 +145,82 @@
- pear : generate PEAR packages;
- snapshot: generate nightly snapshot;
</echo>
+ </target>
+
+<!-- bulid compact prado package definitions -->
+
+ <target name="compact-collections" description="Collections">
+ <mkdir dir="${build.compact.dir}" />
+ <compact-package output="${build.compact.dir}/collections.php" strip="${compact-strip-comments}">
+ <filelist dir="framework" files="PradoBase.php,TComponent.php,Exceptions/TException.php" />
+ <filelist dir="framework/Collections" files="TList.php,TMap.php,TAttributeCollection.php" />
+ </compact-package>
+ <delete file="${build.compact.dir}/messages.txt" />
+ <copy file="framework/Exceptions/messages.txt" tofile="${build.compact.dir}/messages.txt" />
+ <copy file="COPYRIGHT" tofile="${build.compact.dir}/COPYRIGHT" />
+ <copy file="HISTORY" tofile="${build.compact.dir}/HISTORY" />
+ <delete file="${build.compact.dir}/readme.txt" />
+ <append text="PRADO Framework for PHP 5, version ${prado.version}. See http://www.pradosoft.com/ for Documentation."
+ destFile="${build.compact.dir}/readme.txt" />
+ </target>
+
+ <target name="compact-db" description="Database" depends="compact-collections">
+ <compact-package output="${build.compact.dir}/db.php" strip="${compact-strip-comments}">
+ <filelist dir="framework/Data"
+ files="TDbConnection.php, TDbCommand.php, TDbDataReader.php, TDbTransaction.php"/>
+ <filelist dir="framework/Data/Common"
+ files="TDbTableInfo.php, TDbTableColumn.php, TDbCommandBuilder.php, TDbMetaData.php" />
+ </compact-package>
+ </target>
+
+ <target name="compact-db-sqlite" description="Sqlite Database" depends="compact-db">
+ <compact-package output="${build.compact.dir}/db-sqlite.php" strip="${compact-strip-comments}">
+ <filelist dir="framework/Data/Common/Sqlite"
+ files="TSqliteMetaData.php,TSqliteTableColumn.php,TSqliteTableInfo.php" />
+ </compact-package>
+ </target>
+
+ <target name="compact-db-mysql" description="Mysql Database" depends="compact-db">
+ <compact-package output="${build.compact.dir}/db-mysql.php" strip="${compact-strip-comments}">
+ <filelist dir="framework/Data/Common/Mysql"
+ files="TMysqlMetaData.php,TMysqlTableColumn.php,TMysqlTableInfo.php" />
+ </compact-package>
+ </target>
+
+ <target name="compact-db-pgsql" description="Pgsql Database" depends="compact-db">
+ <compact-package output="${build.compact.dir}/db-pgsql.php" strip="${compact-strip-comments}">
+ <filelist dir="framework/Data/Common/Pgsql"
+ files="TPgsqlMetaData.php,TPgsqlTableColumn.php,TPgsqlTableInfo.php" />
+ </compact-package>
+ </target>
+
+ <target name="compact-db-mssql" description="Mssql Database" depends="compact-db">
+ <compact-package output="${build.compact.dir}/db-mssql.php" strip="${compact-strip-comments}">
+ <filelist dir="framework/Data/Common/Mssql"
+ files="TMssqlCommandBuilder.php,TMssqlMetaData.php,TMssqlTableColumn.php,TMssqlTableInfo.php" />
+ </compact-package>
+ </target>
+
+ <!-- all the db common classes and drivers -->
+ <target name="compact-db-all" depends="compact-db-sqlite,compact-db-mysql,compact-db-pgsql,compact-db-mssql" />
+
+ <target name="compact-table-gateway" description="Package Active Record" depends="compact-db-all">
+ <compact-package output="${build.compact.dir}/table-gateway.php" strip="${compact-strip-comments}">
+ <filelist dir="framework/Data/DataGateway"
+ files="TDataGatewayCommand.php, TSqlCriteria.php, TTableGateway.php"/>
+ </compact-package>
+ </target>
+
+ <target name="compact-active-record" description="Package Active Record" depends="compact-table-gateway">
+ <compact-package output="${build.compact.dir}/active-record.php" strip="${compact-strip-comments}">
+ <filelist dir="framework/Data/ActiveRecord"
+ files="TActiveRecord.php,TActiveRecordManager.php,Exceptions/TActiveRecordException.php,TActiveRecordCriteria.php,TActiveRecordGateway.php,TActiveRecordStateRegistry.php" />
+ </compact-package>
+ <append file="framework/Data/ActiveRecord/Exceptions/messages.txt"
+ destfile="${build.compact.dir}/messages.txt" />
</target>
+
+<!-- end compact packaging -->
<target name="build" depends="js" description="Building standard PRADO package v${prado.version}.${prado.revision}">
<echo>Building pradolite.php...</echo>