build.xml 4.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <?xml version="1.0"?>
  2. <project name="DoctrineORM" 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. <include name="UPGRADE*" />
  12. <include name="doctrine-mapping.xsd" />
  13. </fileset>
  14. <!--
  15. Fileset for command line scripts
  16. -->
  17. <fileset id="bin-scripts" dir="./bin">
  18. <include name="doctrine"/>
  19. <include name="doctrine.php"/>
  20. <include name="doctrine.bat"/>
  21. </fileset>
  22. <!--
  23. Fileset for the sources of the Doctrine Common dependency.
  24. -->
  25. <fileset id="common-sources" dir="./lib/vendor/doctrine-common/lib">
  26. <include name="Doctrine/Common/**"/>
  27. </fileset>
  28. <!--
  29. Fileset for the sources of the Doctrine DBAL dependency.
  30. -->
  31. <fileset id="dbal-sources" dir="./lib/vendor/doctrine-dbal/lib">
  32. <include name="Doctrine/DBAL/**"/>
  33. </fileset>
  34. <!--
  35. Fileset for the sources of the Doctrine ORM.
  36. -->
  37. <fileset id="orm-sources" dir="./lib">
  38. <include name="Doctrine/ORM/**"/>
  39. </fileset>
  40. <!--
  41. Fileset for source of the Symfony YAML and Console components.
  42. -->
  43. <fileset id="symfony-sources" dir="./lib/vendor">
  44. <include name="Symfony/Component/**"/>
  45. <exclude name="**/.git/**" />
  46. </fileset>
  47. <!--
  48. Builds ORM package, preparing it for distribution.
  49. -->
  50. <target name="copy-files" depends="prepare">
  51. <copy todir="${build.dir}/${project.name}-${version}">
  52. <fileset refid="shared-artifacts"/>
  53. </copy>
  54. <copy todir="${build.dir}/${project.name}-${version}">
  55. <fileset refid="common-sources"/>
  56. <fileset refid="dbal-sources"/>
  57. <fileset refid="orm-sources"/>
  58. </copy>
  59. <copy todir="${build.dir}/${project.name}-${version}/Doctrine">
  60. <fileset refid="symfony-sources"/>
  61. </copy>
  62. <copy todir="${build.dir}/${project.name}-${version}/bin">
  63. <fileset refid="bin-scripts"/>
  64. </copy>
  65. </target>
  66. <!--
  67. Builds distributable PEAR packages.
  68. -->
  69. <target name="define-pear-package" depends="copy-files">
  70. <d51pearpkg2 baseinstalldir="/" dir="${build.dir}/${project.name}-${version}">
  71. <name>DoctrineORM</name>
  72. <summary>Doctrine Object Relational Mapper</summary>
  73. <channel>pear.doctrine-project.org</channel>
  74. <description>The Doctrine ORM package is the primary package containing the object relational mapper.</description>
  75. <lead user="jwage" name="Jonathan H. Wage" email="jonwage@gmail.com" />
  76. <lead user="guilhermeblanco" name="Guilherme Blanco" email="guilhermeblanco@gmail.com" />
  77. <lead user="romanb" name="Roman Borschel" email="roman@code-factory.org" />
  78. <lead user="beberlei" name="Benjamin Eberlei" email="kontakt@beberlei.de" />
  79. <license>LGPL</license>
  80. <version release="${pear.version}" api="${pear.version}" />
  81. <stability release="${pear.stability}" api="${pear.stability}" />
  82. <notes>-</notes>
  83. <dependencies>
  84. <php minimum_version="5.3.0" />
  85. <pear minimum_version="1.6.0" recommended_version="1.6.1" />
  86. <package name="DoctrineCommon" channel="pear.doctrine-project.org" minimum_version="${dependencies.common}" />
  87. <package name="DoctrineDBAL" channel="pear.doctrine-project.org" minimum_version="${dependencies.dbal}" />
  88. <package name="Console" channel="pear.symfony.org" minimum_version="2.0.0" />
  89. <package name="Yaml" channel="pear.symfony.org" minimum_version="2.0.0" />
  90. </dependencies>
  91. <dirroles key="bin">script</dirroles>
  92. <ignore>Doctrine/Common/</ignore>
  93. <ignore>Doctrine/DBAL/</ignore>
  94. <ignore>Symfony/Component/Yaml/</ignore>
  95. <ignore>Symfony/Component/Console/</ignore>
  96. <release>
  97. <install as="doctrine" name="bin/doctrine" />
  98. <install as="doctrine.php" name="bin/doctrine.php" />
  99. <install as="doctrine.bat" name="bin/doctrine.bat" />
  100. </release>
  101. <replacement path="bin/doctrine" type="pear-config" from="@php_bin@" to="php_bin" />
  102. <replacement path="bin/doctrine.bat" type="pear-config" from="@bin_dir@" to="bin_dir" />
  103. </d51pearpkg2>
  104. </target>
  105. </project>