-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
136 lines (114 loc) · 4.15 KB
/
build.xml
File metadata and controls
136 lines (114 loc) · 4.15 KB
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<?xml version="1.0"?>
<!-- ======================================================================
2005/02/08 22:56:46
deployment_firedictionary
Xul deployment tool for firedictionary
Noriaki Hamamoto
====================================================================== -->
<project name="deployment_firedictionary" default="makeInstaller">
<property name="target" value="firefox.exe"/>
<property name="version" value="0.11"/>
<property environment="env"/>
<property name="chromePath" value="${env.CHROME}"/>
<description>
Xul deployment tool for firedictionary
</description>
<!-- - - - - - - - - - - - - - - - - -
target: makeJar
- - - - - - - - - - - - - - - - - -->
<target name="makeJar" depends="generate">
<mkdir dir="chrome"/>
<jar destfile="chrome/firedictionary.jar">
<fileset dir="src"/>
</jar>
</target>
<!-- - - - - - - - - - - - - - - - - -
target: deployJar
- - - - - - - - - - - - - - - - - -->
<target name="deployJar" depends="makeJar" if="chromePath">
<copy todir="${chromePath}">
<fileset dir="chrome">
<include name="firedictionary.jar"/>
</fileset>
</copy>
</target>
<!-- =================================
target: makeinstaller
================================= -->
<target name="makeInstaller" depends="makeJar">
<jar destfile="firedictionary.xpi">
<fileset dir=".">
<include name="chrome/firedictionary.jar"/>
<include name="install.rdf"/>
<include name="chrome.manifest"/>
</fileset>
</jar>
</target>
<!-- - - - - - - - - - - - - - - - - -
target: makeDownloadFiles
- - - - - - - - - - - - - - - - - -->
<target name="makeDownloadFiles" depends="makeInstaller">
<mkdir dir="download"/>
<copy todir="download">
<fileset dir=".">
<include name="firedictionary.xpi"/>
<include name="update.rdf"/>
</fileset>
</copy>
<tar destfile="download/firedictionary-${version}.tar.gz"
basedir="."
longfile="gnu"
compression = "gzip">
<include name="src/**" />
</tar>
<zip destfile="download/firedictionary-${version}.zip">
<fileset dir=".">
<include name="src/**" />
</fileset>
</zip>
<copy file="download/firedictionary.xpi"
tofile="download/firedictionary-${version}.xpi"/>
<antcall target="makeFiles_For_Addons.Mozilla.org"/>
</target>
<!-- - - - - - - - - - - - - - - - - -
target: makeFiles_For_Addons.Mozilla.org
- - - - - - - - - - - - - - - - - -->
<target name="makeFiles_For_Addons.Mozilla.org">
<mkdir dir="download.addons.mozilla.org/temp/chrome"/>
<style style="tools/copy.xsl"
in="install.rdf"
out="download.addons.mozilla.org/temp/install.rdf"/>
<copy file="chrome.manifest"
tofile="download.addons.mozilla.org/temp/chrome.manifest"/>
<copy file="chrome/firedictionary.jar"
tofile="download.addons.mozilla.org/temp/chrome/firedictionary.jar"/>
<jar destfile="download.addons.mozilla.org/firedictionary.xpi">
<fileset dir="download.addons.mozilla.org/temp">
<include name="chrome/firedictionary.jar"/>
<include name="install.rdf"/>
<include name="chrome.manifest"/>
</fileset>
</jar>
</target>
<!-- - - - - - - - - - - - - - - - - -
target: clean
- - - - - - - - - - - - - - - - - -->
<target name="clean">
<delete dir="chrome"/>
<delete file="firedictionary.xpi"/>
<delete dir="download"/>
<delete dir="download.addons.mozilla.org"/>
<delete dir="jsdoc"/>
</target>
<!-- - - - - - - - - - - - - - - - - -
target: generate
generate the following files by running ruby script
iknow/iKnowMyListManager.html
view/WordHistoryAndExcerpt.html
- - - - - - - - - - - - - - - - - -->
<target name="generate">
<exec executable="ruby">
<arg value="generate.rb"/>
</exec>
</target>
</project>