From 9634702c382b3db186b03627d12bfbc58217b05f Mon Sep 17 00:00:00 2001 From: Martin Czygan <martin.czygan@gmail.com> Date: Wed, 26 Nov 2014 18:39:21 +0100 Subject: [PATCH] Introduce composerdir variable in build.xml. --- build.xml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/build.xml b/build.xml index 01b01ea84f6..002f2f67114 100644 --- a/build.xml +++ b/build.xml @@ -4,6 +4,7 @@ <property name="package" value="${phing.project.name}" override="true" /> <property name="builddir" value="${tmp}/build/${phing.project.name}" override="true" /> <property name="srcdir" value="${project.basedir}" override="true" /> + <property name="composerdir" value="${srcdir}/vendor/bin" /> <property name="apacheconfdir" value="/etc/apache2/conf.d" /> <property name="apachectl" value="/etc/init.d/apache2" /> <property name="vufindurl" value="http://localhost/vufind" /> @@ -57,27 +58,27 @@ <!-- Report rule violations with PHPMD (mess detector) --> <target name="phpmd"> - <exec command="phpmd ${srcdir}/module xml ${srcdir}/tests/phpmd.xml --exclude ${srcdir}/module/VuFind/tests,${srcdir}/module/VuFindSearch/tests --reportfile ${builddir}/reports/phpmd.xml" /> + <exec command="${composerdir}/phpmd ${srcdir}/module xml ${srcdir}/tests/phpmd.xml --exclude ${srcdir}/module/VuFind/tests,${srcdir}/module/VuDL/tests,${srcdir}/module/VuFindSearch/tests --reportfile ${builddir}/reports/phpmd.xml" /> </target> <!-- Measure project with phploc --> <target name="phploc"> - <exec command="phploc --log-csv ${builddir}/reports/phploc.csv ${srcdir}/module" /> + <exec command="${composerdir}/phploc --log-csv ${builddir}/reports/phploc.csv ${srcdir}/module" /> </target> <!-- PHP_Depend code analysis --> <target name="pdepend"> - <exec command="pdepend --jdepend-xml=${builddir}/reports/jdepend.xml --jdepend-chart=${builddir}/reports/dependencies.svg --overview-pyramid=${builddir}/reports/pdepend-pyramid.svg ${srcdir}/module" /> + <exec command="${composerdir}/pdepend --jdepend-xml=${builddir}/reports/jdepend.xml --jdepend-chart=${builddir}/reports/dependencies.svg --overview-pyramid=${builddir}/reports/pdepend-pyramid.svg ${srcdir}/module" /> </target> <!-- PHP copy-and-paste detection --> <target name="phpcpd"> - <exec command="phpcpd --log-pmd ${builddir}/reports/pmd-cpd.xml --exclude tests ${srcdir}/module" /> + <exec command="${composerdir}/phpcpd --log-pmd ${builddir}/reports/pmd-cpd.xml --exclude tests ${srcdir}/module" /> </target> <!-- PHP CodeSniffer --> <target name="phpcs"> - <exec command="phpcs --standard=PEAR --ignore=*/config/*,*/tests/* --extensions=php --report=checkstyle ${srcdir}/module > ${builddir}/reports/checkstyle.xml" escape="false" /> + <exec command="${composerdir}/phpcs --standard=PEAR --ignore=*/config/*,*/tests/* --extensions=php --report=checkstyle ${srcdir}/module > ${builddir}/reports/checkstyle.xml" escape="false" /> </target> <!-- PHP API Documentation --> -- GitLab