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

Add support to distribute the XSD to a given directory during build process

This commit is contained in:
Benjamin Eberlei 2011-08-27 13:23:17 +02:00
parent b560551b1d
commit 4f22bbbc76
2 changed files with 8 additions and 2 deletions

View File

@ -8,6 +8,7 @@ report.dir=reports
log.archive.dir=logs log.archive.dir=logs
project.pirum_dir= project.pirum_dir=
project.download_dir= project.download_dir=
project.xsd_dir=
test.phpunit_configuration_file= test.phpunit_configuration_file=
test.phpunit_generate_coverage=0 test.phpunit_generate_coverage=0
test.pmd_reports=0 test.pmd_reports=0

View File

@ -223,7 +223,12 @@
<target name="distribute-download"> <target name="distribute-download">
<copy file="dist/DoctrineORM-${version}-full.tar.gz" todir="${project.download_dir}" /> <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>
<target name="update-dev-version"> <target name="update-dev-version">
@ -235,7 +240,7 @@
<exec command="git commit -m 'Bump Dev Version to ${next_version}-DEV'" passthru="true" /> <exec command="git commit -m 'Bump Dev Version to ${next_version}-DEV'" passthru="true" />
</target> </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 Builds distributable PEAR packages for the Symfony Dependencies