-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
executable file
·67 lines (55 loc) · 2.06 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
<?xml version="1.0"?>
<project name="managefolders" default="xpi" basedir=".">
<xmlproperty file="install.rdf"/>
<property name="xpi.file"
value="managefolders-${RDF.Description.em:version}.xpi"/>
<property name="xpi.tx.file"
value="managefolders-tx-${RDF.Description.em:version}.xpi"/>
<target name="xpi"
description="create the installable xpi file">
<zip zipfile="${xpi.file}">
<fileset dir="${basedir}">
<include name="chrome/**"/>
<exclude name="chrome/locale/*/amo.*"/>
<exclude name="chrome/locale/*/amo.*"/>
<include name="chrome.manifest"/>
<include name="install.rdf"/>
</fileset>
</zip>
</target>
<target name="xpi-tx"
description="create xpi with amo.properties files for translation">
<zip zipfile="${xpi.tx.file}">
<fileset dir="${basedir}">
<include name="chrome/**"/>
<include name="chrome.manifest"/>
<include name="install.rdf"/>
</fileset>
</zip>
</target>
<target name="upload" depends="clean,xpi"
description="Upload xpi file to google code as a 'download'">
<taskdef classname="net.bluecow.googlecode.ant.GoogleCodeUploadTask"
classpath="lib/ant-googlecode-0.0.1.jar" name="gcupload"/>
<input addproperty="username"
message="username (sans '@google.com')"/>
<input addproperty="password"
message="password (from google code profile settings)"/>
<gcupload
username="${username}"
password="${password}"
projectname="firefox-managefolders"
filename="${xpi.file}"
targetfilename="${xpi.file}"
summary="Manage Folders ${RDF.Description.em:version}"
verbose="true"
labels="Featured,Type-Package,OpSys-All"/>
<echo>
Be sure to change 'Featured' tag to 'Deprecated' for previous release:
http://code.google.com/p/firefox-managefolders/downloads/list?can=3
</echo>
</target>
<target name="clean">
<delete dir="${basedir}" includes="*.xpi"/>
</target>
</project>