diff options
| author | Florian Merz <me@fiji-flo.de> | 2021-02-11 12:07:59 +0100 |
|---|---|---|
| committer | Florian Merz <me@fiji-flo.de> | 2021-02-11 12:07:59 +0100 |
| commit | 6ef1fa4618e08426b874529619a66adbd3d1fcf0 (patch) | |
| tree | 890e3e27131be010d82ef957fa68db495006cb0e /files/ja/orphaned/ant_script_to_assemble_an_extension | |
| parent | 8260a606c143e6b55a467edf017a56bdcd6cba7e (diff) | |
| download | translated-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.html | 74 |
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"><?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" } ) }} |
