Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: 1.12-b13
Fetching contributors…

Cannot retrieve contributors at this time

62 lines (48 sloc) 1.921 kb
<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>
Jump to Line
Something went wrong with that request. Please try again.