aboutsummaryrefslogtreecommitdiff
path: root/files/ja/orphaned/ant_script_to_assemble_an_extension
diff options
context:
space:
mode:
authorFlorian Merz <me@fiji-flo.de>2021-02-11 12:07:59 +0100
committerFlorian Merz <me@fiji-flo.de>2021-02-11 12:07:59 +0100
commit6ef1fa4618e08426b874529619a66adbd3d1fcf0 (patch)
tree890e3e27131be010d82ef957fa68db495006cb0e /files/ja/orphaned/ant_script_to_assemble_an_extension
parent8260a606c143e6b55a467edf017a56bdcd6cba7e (diff)
downloadtranslated-content-6ef1fa4618e08426b874529619a66adbd3d1fcf0.tar.gz
translated-content-6ef1fa4618e08426b874529619a66adbd3d1fcf0.tar.bz2
translated-content-6ef1fa4618e08426b874529619a66adbd3d1fcf0.zip
unslug ja: move
Diffstat (limited to 'files/ja/orphaned/ant_script_to_assemble_an_extension')
-rw-r--r--files/ja/orphaned/ant_script_to_assemble_an_extension/index.html74
1 files changed, 74 insertions, 0 deletions
diff --git a/files/ja/orphaned/ant_script_to_assemble_an_extension/index.html b/files/ja/orphaned/ant_script_to_assemble_an_extension/index.html
new file mode 100644
index 0000000000..3c9a0fca59
--- /dev/null
+++ b/files/ja/orphaned/ant_script_to_assemble_an_extension/index.html
@@ -0,0 +1,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">&lt;?xml version="1.0"?&gt;
+<span>This build file was written by Régis Décamps &lt;<a class=" link-mailto" href="mailto:decamps@users.sf.net">decamps@users.sf.net</a>&gt;</span>
+
+&lt;project name="blogmark" default="createxpi"&gt;
+ &lt;property name="VERSION" value="1.3-rc1"/&gt;
+ &lt;property name="DESCRIPTION" value="New context-menu item to add
+ the current page in your Blogmarks"/&gt;
+ <span>XPI file is created after "chrome/blogmark.jar" is created, which is then stuffed into "blogmark.xpi"</span>
+ &lt;target name="createxpi" depends="createjar"
+ description="Assemble the final build blogmark.xpi"&gt;
+ &lt;zip destfile="blogmark-${VERSION}.xpi"&gt;
+ &lt;zipfileset dir="." includes="chrome/blogmark.jar" /&gt;
+ &lt;zipfileset dir="." includes="install.rdf" /&gt;
+ &lt;/zip&gt;
+ &lt;/target&gt;
+
+ <span>Everything inside the chrome directory is zipped into chrome/blogmark.jar</span>
+ &lt;target name="createjar" depends="templates" description="Assemble the jar"&gt;
+ &lt;jar destfile="chrome/blogmark.jar"&gt;
+ &lt;fileset dir="chrome/"&gt;
+ &lt;include name="**/*"/&gt;
+ &lt;exclude name="**/*~"/&gt;
+ &lt;exclude name="**/*.tpl.*"/&gt;
+ &lt;exclude name="blogmark.jar"/&gt;
+ &lt;/fileset&gt;
+ &lt;/jar&gt;
+ &lt;/target&gt;
+
+ &lt;target name="templates" description="Generate files from templates."&gt;
+ &lt;copy file="chrome/content/blogmark/contents.rdf.tpl.xml"
+ tofile="chrome/content/blogmark/contents.rdf"
+ overwrite="true"&gt;
+ &lt;filterchain&gt;
+ &lt;replacetokens&gt;
+ &lt;token key="VERSION" value="${VERSION}"/&gt;
+ &lt;token key="DESCRIPTION" value="${DESCRIPTION}"/&gt;
+ &lt;/replacetokens&gt;
+ &lt;/filterchain&gt;
+ &lt;/copy&gt;
+ &lt;copy file="chrome/content/blogmark/about.xul.tpl.xml"
+ tofile="chrome/content/blogmark/about.xul"
+ overwrite="true"&gt;
+ &lt;filterchain&gt;
+ &lt;replacetokens&gt;
+ &lt;token key="VERSION" value="${VERSION}"/&gt;
+ &lt;/replacetokens&gt;
+ &lt;/filterchain&gt;
+ &lt;/copy&gt;
+ &lt;copy file="install.rdf.tpl.xml"
+ tofile="install.rdf"
+ overwrite="true"&gt;
+ &lt;filterchain&gt;
+ &lt;replacetokens&gt;
+ &lt;token key="VERSION" value="${VERSION}"/&gt;
+ &lt;token key="DESCRIPTION" value="${DESCRIPTION}"/&gt;
+ &lt;/replacetokens&gt;
+ &lt;/filterchain&gt;
+ &lt;/copy&gt;
+ &lt;/target&gt;
+&lt;/project&gt;
+</pre>
+<div class="noinclude">
+</div>
+{{ languages( { "en": "en/Ant_script_to_assemble_an_extension" } ) }}