1
0
mirror of synced 2024-12-05 03:06:05 +03:00

[2.0] Started Doctrine 2 phing build file.

This commit is contained in:
romanb 2009-06-14 20:07:07 +00:00
parent 104398003c
commit c89d0e6383
2 changed files with 94 additions and 0 deletions

3
build.properties.dev Normal file
View File

@ -0,0 +1,3 @@
version=2.0
build.dir=build
dist.dir=dir

91
build.xml Normal file
View File

@ -0,0 +1,91 @@
<?xml version="1.0"?>
<!--
Doctrine 2 build file.
-->
<project name="Doctrine2" default="dist-all" basedir=".">
<property file="build.properties" />
<fileset id="shared-artifacts" dir=".">
<include name="LICENSE"/>
<include name="COPYRIGHT"/>
<include name="CHANGELOG"/>
</fileset>
<fileset id="common-sources" dir=".">
<include name="lib/Doctrine/Common/**"/>
</fileset>
<fileset id="dbal-sources" dir=".">
<include name="lib/Doctrine/DBAL/**"/>
</fileset>
<fileset id="orm-sources" dir=".">
<include name="lib/Doctrine/ORM/**"/>
</fileset>
<target name="clean">
<delete dir="${build.dir}" includeemptydirs="true" />
<delete dir="${dist.dir}" includeemptydirs="true" />
</target>
<target name="prepare" depends="clean">
<echo msg="Creating build directory: build" />
<mkdir dir="${build.dir}" />
<echo msg="Creating distribution directory: dist" />
<mkdir dir="${dist.dir}" />
</target>
<target name="build-common">
<copy todir="build/common">
<fileset refid="shared-artifacts"/>
<fileset refid="common-sources"/>
</copy>
</target>
<target name="build-dbal">
<copy todir="build/dbal">
<fileset refid="shared-artifacts"/>
<fileset refid="common-sources"/>
<fileset refid="dbal-sources"/>
</copy>
</target>
<target name="build-all" depends="prepare, build-common, build-dbal">
<copy todir="build/all">
<fileset refid="shared-artifacts"/>
<fileset refid="common-sources"/>
<fileset refid="dbal-sources"/>
<fileset refid="orm-sources"/>
</copy>
</target>
<target name="dist-common">
<tar destfile="./dist/Doctrine2-common.tar.gz" compression="gzip">
<fileset dir="./build/common">
<include name="**" />
</fileset>
</tar>
</target>
<target name="dist-dbal">
<tar destfile="./dist/Doctrine2-dbal.tar.gz" compression="gzip">
<fileset dir="./build/dbal">
<include name="**" />
</fileset>
</tar>
</target>
<target name="dist-all" depends="build-all, dist-common, dist-dbal">
<tar destfile="./dist/Doctrine2-all.tar.gz" compression="gzip">
<fileset dir="./build/all">
<include name="**" />
</fileset>
</tar>
</target>
</project>