build.xml 3.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <?xml version="1.0"?>
  2. <project name="DoctrineDBAL" default="build" basedir=".">
  3. <taskdef classname="phing.tasks.ext.d51PearPkg2Task" name="d51pearpkg2" />
  4. <import file="${project.basedir}/lib/vendor/doctrine-build-common/packaging.xml" />
  5. <property file="build.properties" />
  6. <!--
  7. Fileset for artifacts shared across all distributed packages.
  8. -->
  9. <fileset id="shared-artifacts" dir=".">
  10. <include name="LICENSE"/>
  11. </fileset>
  12. <!--
  13. Fileset for command line scripts
  14. -->
  15. <fileset id="bin-scripts" dir="./bin">
  16. <include name="doctrine-dbal"/>
  17. <include name="doctrine-dbal.php"/>
  18. </fileset>
  19. <!--
  20. Fileset for the sources of the Doctrine Common dependency.
  21. -->
  22. <fileset id="common-sources" dir="./lib/vendor/doctrine-common/lib">
  23. <include name="Doctrine/Common/**"/>
  24. </fileset>
  25. <!--
  26. Fileset for the sources of the Doctrine DBAL package.
  27. -->
  28. <fileset id="dbal-sources" dir="./lib">
  29. <include name="Doctrine/DBAL/**"/>
  30. </fileset>
  31. <!--
  32. Fileset for source of the Symfony YAML and Console components.
  33. -->
  34. <fileset id="external-sources" dir="./lib/vendor">
  35. <include name="Symfony/Component**"/>
  36. </fileset>
  37. <target name="copy-files" depends="prepare">
  38. <echo msg="Checking for ${version} in ${project.version_file}" />
  39. <exec command="grep '${version}' ${project.basedir}/${project.version_file}" checkreturn="true"/>
  40. <copy todir="${build.dir}/${project.name}-${version}">
  41. <fileset refid="shared-artifacts"/>
  42. </copy>
  43. <copy todir="${build.dir}/${project.name}-${version}">
  44. <fileset refid="common-sources"/>
  45. <fileset refid="dbal-sources"/>
  46. </copy>
  47. <copy todir="${build.dir}/${project.name}-${version}/Doctrine">
  48. <fileset refid="external-sources"/>
  49. </copy>
  50. <copy todir="${build.dir}/${project.name}-${version}/bin">
  51. <fileset refid="bin-scripts"/>
  52. </copy>
  53. </target>
  54. <target name="define-pear-package" depends="copy-files">
  55. <d51pearpkg2 baseinstalldir="/" dir="${build.dir}/${project.name}-${version}">
  56. <name>${project.name}</name>
  57. <summary>Doctrine Database Abstraction Layer</summary>
  58. <channel>pear.doctrine-project.org</channel>
  59. <description>The Doctrine DBAL package is the database abstraction layer used to power the ORM package.</description>
  60. <lead user="jwage" name="Jonathan H. Wage" email="jonwage@gmail.com" />
  61. <lead user="guilhermeblanco" name="Guilherme Blanco" email="guilhermeblanco@gmail.com" />
  62. <lead user="romanb" name="Roman Borschel" email="roman@code-factory.org" />
  63. <lead user="beberlei" name="Benjamin Eberlei" email="kontakt@beberlei.de" />
  64. <license>LGPL</license>
  65. <version release="${pear.version}" api="${pear.version}" />
  66. <stability release="${pear.stability}" api="${pear.stability}" />
  67. <notes>-</notes>
  68. <dependencies>
  69. <php minimum_version="5.3.2" />
  70. <pear minimum_version="1.6.0" recommended_version="1.6.1" />
  71. <package name="DoctrineCommon" channel="pear.doctrine-project.org" minimum_version="${dependencies.common}" />
  72. <package name="Console" channel="pear.symfony.com" minimum_version="${dependencies.sfconsole}" />
  73. </dependencies>
  74. <dirroles key="bin">script</dirroles>
  75. <ignore>Doctrine/Common/</ignore>
  76. <ignore>Doctrine/Symfony/</ignore>
  77. <release>
  78. <install as="doctrine-dbal" name="bin/doctrine-dbal" />
  79. <install as="doctrine-dbal.php" name="bin/doctrine-dbal.php" />
  80. </release>
  81. </d51pearpkg2>
  82. </target>
  83. </project>