Skip to content
This repository
tag: 1.12-b9
Fetching contributors…

Cannot retrieve contributors at this time

file 61 lines (48 sloc) 1.921 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
<project name="piwik" default="all" basedir=".">

<property file="build.properties" />
<property file="defaults.properties" />
<property environment="env" />

<target name="phpdoc">
<echo>phpDocumentor started</echo>

<delete dir="${env.WORKSPACE}/documentation"/>
<mkdir dir="${env.WORKSPACE}/documentation"/>

<copy file="${workspace.home}/misc/phpdoc-config.ini" tofile="${env.WORKSPACE}/phpdoc-config.ini" overwrite="true" />
<replace file="${env.WORKSPACE}/phpdoc-config.ini" token="target = documentation" value="target = ${env.WORKSPACE}/documentation"/>

<exec executable="${php.executable}" dir="${workspace.home}/" failonerror="true" failifexecutionfails="true">
<arg value="${phpdocumentor.home}/phpDocumentor/phpdoc.inc" />
<arg value="--useconfig"/>
<arg file="${env.WORKSPACE}/phpdoc-config.ini"/>
</exec>

<echo>phpDocumentor finished</echo>
</target>

<target name="schemaspy">
<echo>SchemaSpy started</echo>

<delete dir="${basedir}/../schemaspy-report"/>
<mkdir dir="${basedir}/../schemaspy-report"/>

<java jar="${basedir}/lib/java/schemaSpy_5.0.0.jar" fork="true" failonerror="false" resultproperty="result-schemaspy" maxmemory="256m" dir="${basedir}">
<arg value="-t"/>
<arg value="mysql"/>
<arg value="-host"/>
<arg value="${database.main.host}:${database.main.port}"/>
<arg value="-db"/>
<arg value="${database.main.name}"/>
<arg value="-dp"/>
<arg path="${basedir}/lib/java/mysql-connector-java-5.1.7.jar"/>
<arg value="-u"/>
<arg value="${database.main.username}"/>
<arg value="-o"/>
<arg path="${basedir}/../schemaspy-report"/>
<arg value="-p"/>
<arg value="${database.main.password}"/>
</java>

<echo>SchemaSpy finished</echo>

<fail>
<condition>
<isfailure code="${result-schemaspy}"/>
</condition>
</fail>
</target>

<target name="all">
<antcall target="phpdoc"/>
</target>

</project>
Something went wrong with that request. Please try again.