|
1 | 1 | <project default="create">
|
2 | 2 |
|
3 |
| - <property file="../../www/autochef/etc/autochef.properties" /> |
4 |
| - |
5 |
| - <path id="compile.classpath"> |
6 |
| - <fileset dir="../../www/autochef/src/lib" /> |
7 |
| - </path> |
| 3 | + <property file="../../www/autochef/src/main/resources/autochef.properties" /> |
| 4 | + <property name="jdbc.classpath" value="/usr/share/java/postgresql.jar" /> |
8 | 5 |
|
9 | 6 | <target name="clean">
|
10 | 7 | <sql
|
11 | 8 | driver="org.postgresql.Driver"
|
12 |
| - classpathref="compile.classpath" |
| 9 | + classpath="${jdbc.classpath}" |
13 | 10 | url="jdbc:postgresql://${database.hostname}/postgres"
|
14 | 11 | userid="${database.username}"
|
15 | 12 | password="${database.password}"
|
16 |
| - autocommit="true" |
| 13 | + autocommit="true" |
17 | 14 | >
|
18 | 15 | drop database if exists autochef;
|
19 | 16 | </sql>
|
|
22 | 19 | <target name="create" depends="clean">
|
23 | 20 | <sql
|
24 | 21 | driver="org.postgresql.Driver"
|
25 |
| - classpathref="compile.classpath" |
| 22 | + classpath="${jdbc.classpath}" |
26 | 23 | url="jdbc:postgresql://${database.hostname}/postgres"
|
27 | 24 | userid="${database.username}"
|
28 | 25 | password="${database.password}"
|
29 |
| - autocommit="true" |
| 26 | + autocommit="true" |
30 | 27 | >
|
31 | 28 | create database autochef;
|
32 | 29 | </sql>
|
33 | 30 | <sql
|
34 | 31 | driver="org.postgresql.Driver"
|
35 |
| - classpathref="compile.classpath" |
| 32 | + classpath="${jdbc.classpath}" |
36 | 33 | url="jdbc:postgresql://${database.hostname}/${database.catalog}"
|
37 | 34 | userid="${database.username}"
|
38 | 35 | password="${database.password}"
|
39 | 36 | src="scripts/create.sql"
|
40 | 37 | />
|
41 | 38 | <sql
|
42 | 39 | driver="org.postgresql.Driver"
|
43 |
| - classpathref="compile.classpath" |
| 40 | + classpath="${jdbc.classpath}" |
44 | 41 | url="jdbc:postgresql://${database.hostname}/${database.catalog}"
|
45 | 42 | userid="${database.username}"
|
46 | 43 | password="${database.password}"
|
47 | 44 | src="scripts/data/base-environment.sql"
|
48 | 45 | />
|
49 | 46 | <sql
|
50 | 47 | driver="org.postgresql.Driver"
|
51 |
| - classpathref="compile.classpath" |
| 48 | + classpath="${jdbc.classpath}" |
52 | 49 | url="jdbc:postgresql://${database.hostname}/${database.catalog}"
|
53 | 50 | userid="${database.username}"
|
54 | 51 | password="${database.password}"
|
55 | 52 | src="scripts/data/base-ingredients.sql"
|
56 | 53 | />
|
57 | 54 | <sql
|
58 | 55 | driver="org.postgresql.Driver"
|
59 |
| - classpathref="compile.classpath" |
| 56 | + classpath="${jdbc.classpath}" |
60 | 57 | url="jdbc:postgresql://${database.hostname}/${database.catalog}"
|
61 | 58 | userid="${database.username}"
|
62 | 59 | password="${database.password}">
|
|
68 | 65 | </sql>
|
69 | 66 | <sql
|
70 | 67 | driver="org.postgresql.Driver"
|
71 |
| - classpathref="compile.classpath" |
| 68 | + classpath="${jdbc.classpath}" |
72 | 69 | url="jdbc:postgresql://${database.hostname}/${database.catalog}"
|
73 | 70 | userid="${database.username}"
|
74 | 71 | password="${database.password}"
|
|
0 commit comments