forked from choltz/clear-cache-button
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
executable file
·54 lines (45 loc) · 1.69 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
<project name="MyProject" default="build" basedir=".">
<description>
simple example build file
</description>
<property name="build" location="build"/>
<property name="final" location=""/>
<target name="build">
<!-- Delete the old build directory -->
<delete dir="${build}"/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
<!-- Copy chrome content (sans svn folders) to the build area -->
<!--
<copy todir="${build}/chrome">
<fileset dir="chrome">
<exclude name="**/*.svn"/>
</fileset>
</copy>
-->
<!-- jar the chrome folder -->
<!-- <jar jarfile="${build}/clearcache.jar" basedir="${build}/chrome"/> -->
<!--
delete the chrome folder (and it's contents), create a chrome folder
and copy the jar file into it
-->
<!--
<delete dir="${build}/chrome" />
<mkdir dir="${build}/chrome"/>
<move file="${build}/clearcache.jar" tofile="${build}/chrome/clearcache.jar"/>
-->
<!-- copy remaining content to the build folder -->
<copy todir="${build}/chrome">
<fileset dir="chrome">
</fileset>
</copy>
<copy file="install.rdf" tofile="${build}/install.rdf"/>
<!-- <copy file="install.locales" tofile="${build}/install.locales"/> -->
<copy file="chrome.manifest" tofile="${build}/chrome.manifest"/>
<!-- Zip it all up into the final product -->
<zip zipfile="${build}/clear_cache_button.xpi" basedir="${build}"/>
<!-- copy the xpi up a level to the build folder -->
<move file="${build}/clear_cache_button.xpi" tofile="${final}/clear_cache_button.xpi"/>
<delete dir="${build}"/>
</target>
</project>