<project name="Kolab_Config" default="build" basedir=".">
<property name="tooldir" location="${basedir}/../../%1$s"/>
+ <property name="incdirs" location="${basedir}/lib:${basedir}/deps/pear/php:${tooldir}/php"/>
<target name="clean">
<!-- Clean up -->
<!-- Run unit tests and generate junit.xml and clover.xml -->
<target name="phpunit">
<exec executable="php" failonerror="true">
- <arg line="-c php.ini ${tooldir}/phpunit" />
+ <arg line="-d include_path=${incdirs} ${tooldir}/phpunit" />
</exec>
</target>
<!-- Generate jdepend.xml and software metrics charts -->
<target name="pdepend">
<exec executable="php">
- <arg line="-c php.ini ${tooldir}/pdepend
+ <arg line="-d include_path=${incdirs} ${tooldir}/pdepend
--jdepend-xml=${basedir}/build/logs/jdepend.xml
--jdepend-chart=${basedir}/build/pdepend/dependencies.svg
--overview-pyramid=${basedir}/build/pdepend/overview-pyramid.svg
<!-- Generate pmd.xml -->
<target name="phpmd">
<exec executable="php">
- <arg line="-c php.ini ${tooldir}/phpmd
+ <arg line="-d include_path=${incdirs} ${tooldir}/phpmd
lib xml codesize,unusedcode --reportfile ${basedir}/build/logs/pmd.xml" />
</exec>
</target>
<!-- Generate pmd-cpd.xml -->
<target name="phpcpd">
<exec executable="php">
- <arg line="-c php.ini ${tooldir}/phpcpd
+ <arg line="-d include_path=${incdirs} ${tooldir}/phpcpd
--log-pmd ${basedir}/build/logs/pmd-cpd.xml lib" />
</exec>
</target>
<!-- Generate checkstyle.xml -->
<target name="phpcs">
<exec executable="php" output="/dev/null">
- <arg line="-c php.ini ${tooldir}/phpcs
+ <arg line="-d include_path=${incdirs} ${tooldir}/phpcs
--report=checkstyle
--report-file=${basedir}/build/logs/checkstyle.xml
--standard=Horde
<!-- Generate API documentation -->
<target name="phpdoc">
<exec executable="php">
- <arg line="-c php.ini ${tooldir}/phpdoc --
+ <arg line="-d include_path=${incdirs} ${tooldir}/phpdoc --
-d lib -t build/api" />
</exec>
</target>
<target name="phpcb">
<exec executable="php">
- <arg line="-c php.ini ${tooldir}/phpcb
+ <arg line="-d include_path=${incdirs} ${tooldir}/phpcb
--log=${basedir}/build/logs
--source=${basedir}/lib
--output=${basedir}/build/code-browser" />
<builders>
<hudson.tasks.Shell>
<command>cp -r ${WORKSPACE}/../../%2$s/workspace/%1$s/* ${WORKSPACE}/
-echo "include_path = \".:${WORKSPACE}/../../%3$s/php\"" > ${WORKSPACE}/php.ini
rm -rf ${WORKSPACE}/deps
mkdir ${WORKSPACE}/deps
-php -c php.ini ${WORKSPACE}/../../%3$s/horde-element --install=${WORKSPACE}/deps ${WORKSPACE}/../../%2$s/workspace/%1$s
-php -c php.ini ${WORKSPACE}/../../%3$s/horde-element --ciprebuild=${WORKSPACE} ${WORKSPACE}/../../%2$s/workspace/%1$s
-echo "include_path = \".:${WORKSPACE}/lib:${WORKSPACE}/deps/pear/php:${WORKSPACE}/../../%3$s/php\"" > ${WORKSPACE}/php.ini
+php -d include_path=".:${WORKSPACE}/../../%3$s/php" ${WORKSPACE}/../../%3$s/horde-components --install=${WORKSPACE}/deps ${WORKSPACE}/../../%2$s/workspace/%1$s
+php -d include_path=".:${WORKSPACE}/../../%3$s/php" ${WORKSPACE}/../../%3$s/horde-components --ciprebuild=${WORKSPACE} ${WORKSPACE}/../../%2$s/workspace/%1$s
</command>
</hudson.tasks.Shell>
<hudson.tasks.Ant>