aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/dav/build.xml
diff options
context:
space:
mode:
authorHaakon Meland Eriksen <haakon.eriksen@far.no>2014-06-24 19:34:36 +0200
committerHaakon Meland Eriksen <haakon.eriksen@far.no>2014-06-24 19:34:36 +0200
commitb8dc9e855af2d30f33d0f90dc13d8cad0a7b3e70 (patch)
tree718df6305bcb82c8dcb4b287a7132422e748cdfb /vendor/sabre/dav/build.xml
parentc2d520f1be115fb3cb5da2a35eb10146cecee8aa (diff)
parenta92fb0b04c3e6474ec48faf8e4cc65c382e89d66 (diff)
downloadvolse-hubzilla-b8dc9e855af2d30f33d0f90dc13d8cad0a7b3e70.tar.gz
volse-hubzilla-b8dc9e855af2d30f33d0f90dc13d8cad0a7b3e70.tar.bz2
volse-hubzilla-b8dc9e855af2d30f33d0f90dc13d8cad0a7b3e70.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'vendor/sabre/dav/build.xml')
-rw-r--r--vendor/sabre/dav/build.xml72
1 files changed, 72 insertions, 0 deletions
diff --git a/vendor/sabre/dav/build.xml b/vendor/sabre/dav/build.xml
new file mode 100644
index 000000000..0f70f8199
--- /dev/null
+++ b/vendor/sabre/dav/build.xml
@@ -0,0 +1,72 @@
+<?xml version="1.0"?>
+<project name="SabreDAV" default="buildzip" basedir=".">
+
+ <!-- Any default properties -->
+ <property file="build.properties" />
+
+ <!-- Where to write api documentation -->
+ <property name="sabredav.apidocspath" value="docs/api" />
+
+ <target name="buildzip" depends="init, test, clean">
+ <mkdir dir="build" />
+ <echo>Running composer</echo>
+ <exec command="composer create-project --no-dev sabre/dav build/SabreDAV ${sabredav.version}" checkreturn="false" passthru="1" />
+ <zip destfile="build/SabreDAV-${sabredav.version}.zip" basedir="build/SabreDAV" prefix="SabreDAV/" />
+ </target>
+
+ <target name="clean" depends="init">
+ <echo msg="Removing build files (cleaning up distribution)" />
+ <delete dir="docs/api" />
+ <delete dir="build" />
+ </target>
+
+ <target name="markrelease" depends="init,clean,test">
+ <echo>Creating Git release tag</echo>
+ <exec command="git tag ${sabredav.version}" checkreturn="false" passthru="1" />
+ </target>
+
+ <target name="test">
+ <phpunit haltonfailure="1" haltonerror="1" bootstrap="tests/bootstrap.php" haltonskipped="1" printsummary="1">
+ <batchtest>
+ <fileset dir="tests">
+ <include name="**/*.php"/>
+ </fileset>
+ </batchtest>
+ </phpunit>
+ </target>
+
+ <target name="apidocs" depends="init">
+
+ <echo>Creating api documentation using PHP documentor</echo>
+ <echo>Writing to ${sabredav.apidocspath}</echo>
+ <exec command="phpdoc parse -t ${sabredav.apidocspath} -d lib/" passthru="1" />
+ <exec command="bin/phpdocmd ${sabredav.apidocspath}/structure.xml ${sabredav.apidocspath} --lt %c" passthru="1" />
+ <!--<delete file="${sabredav.apidocspath}/structure.xml" />-->
+
+ </target>
+
+ <target name="init">
+
+ <!-- This sets SabreDAV version information -->
+ <adhoc-task name="sabredav-version"><![CDATA[
+
+ class SabreDAV_VersionTask extends Task {
+
+ public function main() {
+
+ include_once 'lib/Sabre/DAV/Version.php';
+ $this->getProject()->setNewProperty('sabredav.version',\Sabre\DAV\Version::VERSION);
+ $this->getProject()->setNewProperty('sabredav.stability',\Sabre\DAV\Version::STABILITY);
+ $this->getProject()->setNewProperty('sabredav.ucstability',ucwords(Sabre\DAV\Version::STABILITY));
+
+ }
+
+ }
+
+ ]]></adhoc-task>
+ <sabredav-version />
+ <echo>SabreDAV version ${sabredav.version}</echo>
+
+ </target>
+
+</project>