blob: cc503169a77038318ac2a570d0bc5add24966edf (
plain)
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>
|