1
1
<project name =" BezierSQLib" default =" install" basedir =" ./" >
2
-
2
+
3
3
<description >
4
4
BezierSQLib (formerly SQLibrary) build file, based on Processing libraries build file.
5
5
</description >
6
-
6
+
7
7
<target name =" settings" >
8
-
8
+
9
9
<!-- == Change these two for building == -->
10
-
11
- <!-- Change to point to Processings library folder (core.jar, etc) -->
12
- <property name =" libraryClasspath"
13
- location =" /Applications/Processing.app/Contents/Resources/Java/" />
14
- <property name =" processing.classes"
15
- location =" /Users/fjenett/Repos/processing/build/macosx/work/Processing.app/Contents/Resources/Java/" />
16
-
10
+
11
+ <property file =" local.properties" />
12
+
13
+ <condition property =" props.present" >
14
+ <available file =" local.properties" />
15
+ </condition >
16
+
17
+ <fail unless =" processing.dir" message =" To make the build work, create a file named local.properties, with the following:
18
+ ${ line.separator } processing.dir=/path/to/processing-git
19
+ ${ line.separator } with the path to where you have the code for Processing checked out. ${ line.separator } (This script will look for the 'core' directory inside that folder.)
20
+ ${ line.separator } libraries.dir=/path/to/sketchbook/libraries
21
+ ${ line.separator } with the full path to the 'libraries' folder inside your sketchbook." />
22
+
17
23
<!-- Change to point to your user libraries folder inside your sketchbook -->
18
- <property name =" processing" location =" /Users/fjenett/Documents/Processing/libraries" />
19
-
24
+ <property name =" processing" location =" /Users/fjenett/Documents/Processing/libraries" />
25
+
20
26
<!-- No changes or adjustments required below -->
21
27
22
28
<property name =" author" value=" Florian Jenett" />
23
29
<property name =" copyright" value=" (c) 2005 - 2012" />
24
30
<property name =" libraryName" value=" BezierSQLib" />
25
- <property name =" versionNumber" value =" 0.2 .1" />
31
+ <property name =" versionNumber" value =" 0.3 .1" />
26
32
<property name =" yourLink" value=" http://bezier.de/" />
27
33
<property name =" keywords" value=" MySQL, SQLite, PostgreSQL, SQL, database" />
28
- <property name =" javaVersion" value=" 1.5 " />
34
+ <property name =" javaVersion" value=" 1.8 " />
29
35
30
36
<buildnumber file =" resources/build.number" />
31
-
37
+
32
38
<path id =" library-classes-add" >
33
39
<fileset dir =" lib" >
34
40
<include name =" mysql-connector-java-3.1.14-bin.jar" /> <!-- MySQL -->
38
44
</path >
39
45
40
46
<path id =" library-classpath" >
41
- <fileset dir =" ${ processing.classes } " >
47
+ <fileset dir =" ${ processing.dir } " >
42
48
<include name =" core/library/core.jar" />
43
49
</fileset >
44
50
<path refid =" library-classes-add" />
45
51
</path >
46
-
52
+
47
53
<property name =" jarFile" value=" ${ libraryName } .jar" />
48
54
<property name =" src" location=" src" />
49
55
<property name =" bin" location=" bin" />
50
56
<property name =" javadoc" location=" documentation" />
51
57
<property name =" dist" value=" ${ libraryName } " />
52
58
<property name =" build" location=" build" />
53
- <property name =" web" location=" ../sql-website" />
59
+ <property name =" web" location=" ../sql-website" />
54
60
55
61
</target >
56
-
62
+
57
63
<target name =" init" depends =" settings" >
58
-
64
+
59
65
<echo >
60
66
Properties initialized.
61
67
src path ${ src }
62
68
bin path ${ bin }
63
- Processing classes ${ processing.classes }
64
- processing Libraries ${ processing }
69
+ Processing dir ${ processing.dir }
70
+ processing Libraries ${ libraries.dir }
65
71
java version ${ javaVersion }
66
72
</echo >
67
-
73
+
68
74
<buildnumber file =" lib/build.number" />
69
75
<tstamp >
70
76
<format property =" date" pattern =" MM/dd/yyyy" offset =" 0" unit =" hour" />
71
77
</tstamp >
72
78
<echo >Start to build the library ... this is vers. ${ versionNumber } , build #${ build.number } on ${ date } </echo >
73
-
79
+
74
80
<!-- add ant-contrib package, needed for <foreach> -->
75
81
<taskdef resource =" net/sf/antcontrib/antcontrib.properties" >
76
82
<classpath >
77
83
<pathelement location =" lib/ant-contrib-1.0b3.jar" />
78
84
</classpath >
79
85
</taskdef >
80
-
86
+
81
87
<mkdir dir =" ${ dist } " />
82
88
</target >
83
89
84
-
90
+
85
91
<!-- + + + + + + + + + + + + + + + + + + + + + + +
86
92
COMPILE, BUILD
87
93
+ + + + + + + + + + + + + + + + + + + + + + + -->
@@ -103,11 +109,11 @@ java version ${javaVersion}
103
109
<mkdir dir =" ${ javadoc } " />
104
110
105
111
<javadoc bottom =" Processing library ${ libraryName } (formerly SQLibrary) by ${ author } . ${ copyright } "
106
- destdir =" ${ javadoc } "
107
- verbose =" false"
108
- stylesheetfile =" resources/stylesheet.css"
109
- doctitle =" Javadocs: ${ libraryName } "
110
- public =" true" version =" false"
112
+ destdir =" ${ javadoc } "
113
+ verbose =" false"
114
+ stylesheetfile =" resources/stylesheet.css"
115
+ doctitle =" Javadocs: ${ libraryName } "
116
+ public =" true" version =" false"
111
117
windowtitle =" Javadocs: ${ libraryName } (formerly SQLibrary)" >
112
118
<fileset dir =" ${ src } " defaultexcludes =" yes" >
113
119
<include name =" **/*" />
@@ -144,7 +150,7 @@ java version ${javaVersion}
144
150
<copy todir =" ${ dist } /library" >
145
151
<path refid =" library-classes-add" />
146
152
</copy >
147
-
153
+
148
154
<copy todir =" ${ dist } /documentation" >
149
155
<fileset dir =" ${ javadoc } " />
150
156
</copy >
@@ -176,7 +182,7 @@ java version ${javaVersion}
176
182
<fileset file =" ${ dist } /library.properties" />
177
183
</copy >
178
184
179
-
185
+
180
186
</target >
181
187
182
188
@@ -185,9 +191,9 @@ java version ${javaVersion}
185
191
+ + + + + + + + + + + + + + + + + + + + + + + -->
186
192
<target name =" install" depends =" package" >
187
193
188
- <mkdir dir =" ${ processing } /${ libraryName } " />
194
+ <mkdir dir =" ${ libraries.dir } /${ libraryName } " />
189
195
190
- <copy todir =" ${ processing } /${ libraryName } " >
196
+ <copy todir =" ${ libraries.dir } /${ libraryName } " >
191
197
<fileset dir =" ${ dist } " />
192
198
</copy >
193
199
@@ -203,61 +209,61 @@ java version ${javaVersion}
203
209
<move todir =" ${ web } /documentation" >
204
210
<fileset dir =" ${ dist } /documentation" />
205
211
</move >
206
-
212
+
207
213
<move todir =" ${ web } /examples" >
208
214
<fileset dir =" ${ dist } /examples" />
209
215
</move >
210
-
216
+
211
217
<copy todir =" ${ web } " >
212
218
<fileset dir =" resources/web" />
213
219
</copy >
214
-
220
+
215
221
<!--
216
- format the index.html file.
217
- regular expressions are used to parse the web index.html file.
218
- key words starting and ending with ## are replaced by values
222
+ format the index.html file.
223
+ regular expressions are used to parse the web index.html file.
224
+ key words starting and ending with ## are replaced by values
219
225
defined earlier in the beginning of this build file.
220
226
-->
221
-
227
+
222
228
<replaceregexp file =" ${ web } /index.html"
223
229
match =" ##yourLibrary##"
224
230
replace =" ${ libraryName } "
225
231
flags =" g" />
226
-
232
+
227
233
<replaceregexp file =" ${ web } /index.html"
228
234
match=" ##author##"
229
235
replace=" ${ author } "
230
236
flags=" g" />
231
-
237
+
232
238
<replaceregexp file =" ${ web } /index.html"
233
239
match=" ##versionNumber##"
234
240
replace=" ${ versionNumber } "
235
241
flags=" g" />
236
-
242
+
237
243
<replaceregexp file =" ${ web } /index.html"
238
244
match=" ##yourLink##"
239
245
replace=" ${ yourLink } "
240
246
flags=" g" />
241
-
247
+
242
248
<replaceregexp file =" ${ web } /index.html"
243
249
match=" ##date##"
244
250
replace=" ${ date } "
245
251
flags=" g" />
246
-
252
+
247
253
<replaceregexp file =" ${ web } /index.html"
248
254
match=" ##keywords##"
249
255
replace=" ${ keywords } "
250
256
flags=" g" />
251
-
252
-
257
+
258
+
253
259
<antcall target =" processExamples" />
254
-
260
+
255
261
<mkdir dir =" ${ web } /download" />
256
262
257
263
<copy file =" releases/${ libraryName } -${ versionNumber } .zip" todir =" ${ web } /download" />
258
264
259
265
</target >
260
-
266
+
261
267
262
268
<!-- + + + + + + + + + + + + + + + + + + + + + + +
263
269
CLEAN
@@ -267,9 +273,9 @@ java version ${javaVersion}
267
273
<delete dir =" ${ javadoc } " />
268
274
<delete dir =" ${ build } " />
269
275
<delete dir =" ${ web } " />
270
- </target >
271
-
272
-
276
+ </target >
277
+
278
+
273
279
<!-- + + + + + + + + + + + + + + + + + + + + + + +
274
280
EXAMPLES, all
275
281
+ + + + + + + + + + + + + + + + + + + + + + + -->
@@ -289,17 +295,17 @@ java version ${javaVersion}
289
295
replace=" "
290
296
flags=" g" />
291
297
</target >
292
-
298
+
293
299
<!-- + + + + + + + + + + + + + + + + + + + + + + +
294
300
EXAMPLES, one
295
301
+ + + + + + + + + + + + + + + + + + + + + + + -->
296
302
<target name =" addExamples" depends =" settings" >
297
303
<property name =" exampleZipped" value =" ${ exampleDir } .zip" />
298
-
304
+
299
305
<zip destfile =" ${ web } /examples/${ exampleZipped } "
300
306
basedir=" ${ web } /examples/${ exampleDir } /"
301
307
excludes=" **/_DS.Store" />
302
-
308
+
303
309
<replaceregexp file =" ${ web } /index.html"
304
310
match=" (##examples##)"
305
311
replace=" <li><a href="examples/${ exampleZipped } ">${ exampleDir } </a></li> \1"
0 commit comments