blob: 3c9a0fca59a563f16a224301dcfdea943993c33e (
plain)
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
|
---
title: ant script to assemble an extension
slug: ant_script_to_assemble_an_extension
tags:
- Extensions
- 'Extensions:Tools'
- Tools
---
<p>この ant スクリプトは<a href="ja/Extension_Packaging">拡張機能のパッケージ化</a>に役立ちます。
</p>
<pre class="eval"><?xml version="1.0"?>
<span>This build file was written by Régis Décamps <<a class=" link-mailto" href="mailto:decamps@users.sf.net">decamps@users.sf.net</a>></span>
<project name="blogmark" default="createxpi">
<property name="VERSION" value="1.3-rc1"/>
<property name="DESCRIPTION" value="New context-menu item to add
the current page in your Blogmarks"/>
<span>XPI file is created after "chrome/blogmark.jar" is created, which is then stuffed into "blogmark.xpi"</span>
<target name="createxpi" depends="createjar"
description="Assemble the final build blogmark.xpi">
<zip destfile="blogmark-${VERSION}.xpi">
<zipfileset dir="." includes="chrome/blogmark.jar" />
<zipfileset dir="." includes="install.rdf" />
</zip>
</target>
<span>Everything inside the chrome directory is zipped into chrome/blogmark.jar</span>
<target name="createjar" depends="templates" description="Assemble the jar">
<jar destfile="chrome/blogmark.jar">
<fileset dir="chrome/">
<include name="**/*"/>
<exclude name="**/*~"/>
<exclude name="**/*.tpl.*"/>
<exclude name="blogmark.jar"/>
</fileset>
</jar>
</target>
<target name="templates" description="Generate files from templates.">
<copy file="chrome/content/blogmark/contents.rdf.tpl.xml"
tofile="chrome/content/blogmark/contents.rdf"
overwrite="true">
<filterchain>
<replacetokens>
<token key="VERSION" value="${VERSION}"/>
<token key="DESCRIPTION" value="${DESCRIPTION}"/>
</replacetokens>
</filterchain>
</copy>
<copy file="chrome/content/blogmark/about.xul.tpl.xml"
tofile="chrome/content/blogmark/about.xul"
overwrite="true">
<filterchain>
<replacetokens>
<token key="VERSION" value="${VERSION}"/>
</replacetokens>
</filterchain>
</copy>
<copy file="install.rdf.tpl.xml"
tofile="install.rdf"
overwrite="true">
<filterchain>
<replacetokens>
<token key="VERSION" value="${VERSION}"/>
<token key="DESCRIPTION" value="${DESCRIPTION}"/>
</replacetokens>
</filterchain>
</copy>
</target>
</project>
</pre>
<div class="noinclude">
</div>
{{ languages( { "en": "en/Ant_script_to_assemble_an_extension" } ) }}
|