-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
83 lines (66 loc) · 2.57 KB
/
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
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<project name="jeantessier.com" default="all" basedir=".">
<description>
Jean's Website
</description>
<property environment="env"/>
<property file="book_reviews.properties"/>
<target name="all" depends="books, se_blogs"
description="Generates all dynamic content and Atom feeds."/>
<target name="books" depends="books.json, books.atom, booksbacklog.json"
description="Generate the Recent Readings pages (for local debugging)."/>
<target name="books.json">
<exec executable="perl"
output="Books.json">
<arg value="Books_json.cgi"/>
<arg value="--no-headers"/>
</exec>
</target>
<target name="books.atom">
<exec executable="perl"
output="Books.atom">
<arg value="Books_atom.cgi"/>
<arg value="--no-headers"/>
</exec>
</target>
<target name="booksbacklog.json">
<exec executable="perl"
output="BooksBackLog.json">
<arg value="BooksBackLog_json.cgi"/>
<arg value="--no-headers"/>
</exec>
</target>
<target name="se_blogs">
<ant dir="SoftwareEngineering" inheritAll="false"/>
</target>
<target name="book_reviews" depends="book_reviews.refresh, book_reviews.deploy, se_book_reviews.deploy"
description="Updates the instances of BookReviews"/>
<target name="book_reviews.refresh">
<delete dir="BookReviews"/>
<copy todir="BookReviews">
<fileset dir="${book_reviews.home}/build"/>
</copy>
</target>
<target name="book_reviews.deploy">
<copy file="${book_reviews.home}/build/index.html" tofile="Books.html" overwrite="true"/>
<copy file="${book_reviews.home}/build/index.html" tofile="BooksBackLog.html" overwrite="true"/>
</target>
<target name="se_book_reviews.deploy">
<ant dir="SoftwareEngineering" target="book_reviews.deploy"/>
</target>
<target name="clean" depends="books.clean, se_clean"
description="Clean up JSON and Atom files"/>
<target name="books.clean">
<delete verbose="true">
<fileset dir="." defaultexcludes="no">
<patternset>
<include name="*.atom"/>
<include name="*.json"/>
<exclude name="google_analytics.json"/>
</patternset>
</fileset>
</delete>
</target>
<target name="se_clean">
<ant dir="SoftwareEngineering" target="clean" inheritAll="false"/>
</target>
</project>