Permalink
Browse files

Add support to distribute the XSD to a given directory during build p…

…rocess
  • Loading branch information...
1 parent b560551 commit 4f22bbbc7654f6a7d58116a4eceddd58e5ecd44a @beberlei beberlei committed Aug 27, 2011
Showing with 8 additions and 2 deletions.
  1. +1 −0 build.properties.dev
  2. +7 −2 build.xml
@@ -8,6 +8,7 @@ report.dir=reports
log.archive.dir=logs
project.pirum_dir=
project.download_dir=
+project.xsd_dir=
test.phpunit_configuration_file=
test.phpunit_generate_coverage=0
test.pmd_reports=0
View
@@ -223,7 +223,12 @@
<target name="distribute-download">
<copy file="dist/DoctrineORM-${version}-full.tar.gz" todir="${project.download_dir}" />
- <copy file="${dist.dir}/doctrine-orm-${version}.phar" todir="${project.download_dir}" />
+ <!--<copy file="${dist.dir}/doctrine-orm-${version}.phar" todir="${project.download_dir}" />-->
+ </target>
+
+ <target name="distribute-xsd">
+ <php expression="substr('${version}', 0, 3)" returnProperty="minorVersion" /><!-- not too robust -->
+ <copy file="${project.basedir}/doctrine-mapping.xsd" tofile="${project.xsd_dir}/doctrine-mapping-${minorVersion}.xsd" />
</target>
<target name="update-dev-version">
@@ -235,7 +240,7 @@
<exec command="git commit -m 'Bump Dev Version to ${next_version}-DEV'" passthru="true" />
</target>
- <target name="release" depends="git-tag,build-packages,package-phar,distribute-download,pirum-release,update-dev-version" />
+ <target name="release" depends="git-tag,build-packages,distribute-download,pirum-release,update-dev-version,distribute-xsd" />
<!--
Builds distributable PEAR packages for the Symfony Dependencies

0 comments on commit 4f22bbb

Please sign in to comment.