Skip to content

Commit 4f22bbb

Browse files
committed
Add support to distribute the XSD to a given directory during build process
1 parent b560551 commit 4f22bbb

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

build.properties.dev

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ report.dir=reports
88
log.archive.dir=logs
99
project.pirum_dir=
1010
project.download_dir=
11+
project.xsd_dir=
1112
test.phpunit_configuration_file=
1213
test.phpunit_generate_coverage=0
1314
test.pmd_reports=0

build.xml

+7-2
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,12 @@
223223

224224
<target name="distribute-download">
225225
<copy file="dist/DoctrineORM-${version}-full.tar.gz" todir="${project.download_dir}" />
226-
<copy file="${dist.dir}/doctrine-orm-${version}.phar" todir="${project.download_dir}" />
226+
<!--<copy file="${dist.dir}/doctrine-orm-${version}.phar" todir="${project.download_dir}" />-->
227+
</target>
228+
229+
<target name="distribute-xsd">
230+
<php expression="substr('${version}', 0, 3)" returnProperty="minorVersion" /><!-- not too robust -->
231+
<copy file="${project.basedir}/doctrine-mapping.xsd" tofile="${project.xsd_dir}/doctrine-mapping-${minorVersion}.xsd" />
227232
</target>
228233

229234
<target name="update-dev-version">
@@ -235,7 +240,7 @@
235240
<exec command="git commit -m 'Bump Dev Version to ${next_version}-DEV'" passthru="true" />
236241
</target>
237242

238-
<target name="release" depends="git-tag,build-packages,package-phar,distribute-download,pirum-release,update-dev-version" />
243+
<target name="release" depends="git-tag,build-packages,distribute-download,pirum-release,update-dev-version,distribute-xsd" />
239244

240245
<!--
241246
Builds distributable PEAR packages for the Symfony Dependencies

0 commit comments

Comments
 (0)