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

[2.0] Updating phing build.xml to generate pear packages

This commit is contained in:
jwage 2009-08-31 22:24:48 +00:00
parent 94c187685b
commit 0d0a772ea6
5 changed files with 69 additions and 53 deletions

View File

@ -1,4 +1,14 @@
version=2.0-alpha1 name=Doctrine
summary=PHP5 Database ORM
description=Doctrine is an ORM (object relational mapper) for PHP 5.2.x+ that sits on top of
a powerful DBAL (database abstraction layer). One of its key features is the
ability to optionally write database queries in an OO (object oriented)
SQL-dialect called DQL inspired by Hibernates HQL. This provides developers with
a powerful alternative to SQL that maintains a maximum of flexibility without
requiring needless code duplication.
version_name=2.0.0-ALPHA1
version=2.0.0
stability=alpha
build.dir=build build.dir=build
dist.dir=dist dist.dir=dist
report.dir=reports report.dir=reports

View File

@ -4,8 +4,9 @@
Doctrine 2 build file. Doctrine 2 build file.
--> -->
<project name="Doctrine2" default="dist-orm" basedir="."> <project name="Doctrine2" default="build" basedir=".">
<taskdef classname="phing.tasks.ext.d51PearPkg2Task" name="d51pearpkg2" />
<property file="build.properties" /> <property file="build.properties" />
<!-- <!--
@ -48,6 +49,7 @@
<include name="tools/sandbox/cli-config.php"/> <include name="tools/sandbox/cli-config.php"/>
<include name="tools/sandbox/config.php"/> <include name="tools/sandbox/config.php"/>
<include name="tools/sandbox/doctrine"/> <include name="tools/sandbox/doctrine"/>
<include name="tools/sandbox/doctrine.php"/>
<include name="tools/sandbox/index.php"/> <include name="tools/sandbox/index.php"/>
</fileset> </fileset>
@ -94,6 +96,8 @@
</copy> </copy>
</target> </target>
<target name="build" depends="test, build-orm"/>
<target name="prepare-test"> <target name="prepare-test">
<mkdir dir="${build.dir}/logs"/> <mkdir dir="${build.dir}/logs"/>
<mkdir dir="${report.dir}/tests"/> <mkdir dir="${report.dir}/tests"/>
@ -113,39 +117,48 @@
</phpunit> </phpunit>
<phpunitreport infile="build/logs/testsuites.xml" format="frames" todir="reports/tests" /> <phpunitreport infile="build/logs/testsuites.xml" format="frames" todir="reports/tests" />
</target> </target>
<!-- <target name="build-tar-packages" depends="test, build-orm">
Distributes the Doctrine Common package. <tar destfile="${dist.dir}/DoctrineCommon-${version_name}.tar.gz" compression="gzip">
--> <fileset dir="${build.dir}/common">
<target name="dist-common"> <include name="**" />
<tar destfile="${dist.dir}/Doctrine-${version}-common.tar.gz" compression="gzip"> </fileset>
<fileset dir="${build.dir}/common"> </tar>
<include name="**" /> <tar destfile="${dist.dir}/DoctrineDBAL-${version_name}.tar.gz" compression="gzip">
</fileset> <fileset dir="${build.dir}/dbal">
</tar> <include name="**" />
</target> </fileset>
</tar>
<!-- <tar destfile="${dist.dir}/DoctrineORM-${version_name}.tar.gz" compression="gzip">
Distributes the Doctrine DBAL package. <fileset dir="${build.dir}/orm">
--> <include name="**" />
<target name="dist-dbal"> </fileset>
<tar destfile="${dist.dir}/Doctrine-${version}-dbal.tar.gz" compression="gzip"> </tar>
<fileset dir="${build.dir}/dbal">
<include name="**" />
</fileset>
</tar>
</target> </target>
<!-- <target name="build-pear-packages" depends="test, build-orm">
DEFAULT TARGET <d51pearpkg2 baseinstalldir="Doctrine" dir="${build.dir}/orm">
Tests, builds and distributes the full Doctrine package (Common+DBAL+ORM). <name>${name}</name>
--> <summary>${summary}</summary>
<target name="dist-orm" depends="test, build-orm, dist-common, dist-dbal"> <channel>pear.phpdoctrine.org</channel>
<tar destfile="${dist.dir}/Doctrine-${version}-orm.tar.gz" compression="gzip"> <description>${description}</description>
<fileset dir="${build.dir}/orm"> <lead user="jwage" name="Jonathan H. Wage" email="jonwage@gmail.com" />
<include name="**" /> <lead user="guilhermeblanco" name="Guilherme Blanco" email="guilhermeblanco@gmail.com" />
</fileset> <lead user="romanb" name="Roman Borschel" email="roman@code-factory.org" />
</tar> <license>LGPL</license>
<version release="${version}" api="${version}" />
<stability release="${stability}" api="${stability}" />
<notes>-</notes>
<dependencies>
<php minimum_version="5.3.0" />
<pear minimum_version="1.6.0" recommended_version="1.6.1" />
</dependencies>
</d51pearpkg2>
<tar destfile="${dist.dir}/DoctrineCommon-${version_name}.tgz" basedir="${build.dir}/common" compression="gzip" />
<tar destfile="${dist.dir}/DoctrineDBAL-${version_name}.tgz" basedir="${build.dir}/dbal" compression="gzip" />
<tar destfile="${dist.dir}/DoctrineORM-${version_name}.tgz" basedir="${build.dir}/orm" compression="gzip" />
</target> </target>
</project> <target name="build-packages" depends="test, build-pear-packages, build-tar-packages"/>
</project>

View File

@ -1,10 +0,0 @@
#!/usr/bin/env php
<?php
require __DIR__ . '/lib/Doctrine/Common/ClassLoader.php';
$classLoader = new \Doctrine\Common\ClassLoader();
$classLoader->setBasePath('Doctrine', __DIR__ . '/lib');
$cli = new \Doctrine\ORM\Tools\Cli();
$cli->run($_SERVER['argv']);

View File

@ -1,10 +1,4 @@
#!/usr/bin/env php #!/usr/bin/env php
<?php <?php
require __DIR__ . '/../../lib/Doctrine/Common/ClassLoader.php'; include('doctrine.php');
$classLoader = new \Doctrine\Common\ClassLoader();
$classLoader->setBasePath('Doctrine', __DIR__ . '/../../lib');
$cli = new \Doctrine\ORM\Tools\Cli();
$cli->run($_SERVER['argv']);

View File

@ -0,0 +1,9 @@
<?php
require __DIR__ . '/../../lib/Doctrine/Common/ClassLoader.php';
$classLoader = new \Doctrine\Common\ClassLoader();
$classLoader->setBasePath('Doctrine', __DIR__ . '/../../lib');
$cli = new \Doctrine\ORM\Tools\Cli();
$cli->run($_SERVER['argv']);