-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.xml
31 lines (27 loc) · 1017 Bytes
/
build.xml
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
<?xml version="1.0" encoding="UTF-8" ?>
<project name="todo" default="help">
<description>Todo</description>
<target name="help" description="Affiche cette aide">
<java classname="org.apache.tools.ant.Main">
<arg value="-projecthelp" />
</java>
</target>
<target name="classmap" description="Génère les fichiers autoload_classmap.php">
<generate-classmap dir="application" />
<generate-classmap dir="library" />
</target>
<target name="initdb" description="Initialise la base sqlite">
<exec dir="./application/data" executable="sqlite3" failonerror="true" input="./application/data/schema.sql">
<arg value="todos.db" />
</exec>
<chmod file="./application/data/todos.db" perm="ugo+w"/>
</target>
<macrodef name="generate-classmap">
<attribute name="dir" default="." />
<sequential>
<exec dir="@{dir}" executable="php" failonerror="true">
<arg value="../../vendor/zendframework/zendframework/bin/classmap_generator.php" />
</exec>
</sequential>
</macrodef>
</project>