blob: 23638e1826f06c5e167c786b968b2a77e9292475 [file] [log] [blame]
<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Specifying property placeholders</title><meta content="DocBook XSL Stylesheets V1.76.0" name="generator"><link rel="home" href="index.html" title="Bundlor User Guide"><link rel="up" href="ch05.html" title="Chapter&nbsp;5.&nbsp;Manifest Templates"><link rel="prev" href="ch05s02.html" title="Manifest Template Format"><link rel="next" href="ch05s04.html" title="Specifying automatic version expansion of imported packages based on a pattern"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table summary="Navigation header" width="100%"><tr><td align="left" width="20%"><a accesskey="p" href="ch05s02.html">Prev</a>&nbsp;</td><th align="center" width="60%">&nbsp;</th><td align="right" width="20%">&nbsp;<a accesskey="n" href="ch05s04.html">Next</a></td></tr></table><hr></div><div class="section" title="Specifying property placeholders"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="manifest.template.property"></a>Specifying property placeholders</h2></div></div></div><p>
To specify a property placeholder in your manifest template, use the form
<code class="literal">${property.name}</code>, where <code class="literal">property.name</code> refers to the name of the
property placeholder. The method in which the manifest template actually gets the value of the property
placeholder at runtime depends on the Bundlor front end you use (command line, ANT, or Maven); the details
are described later.
</p><p>
The following example shows how to use a property placeholder for the <code class="literal">Bundle-Name</code>
manifest header rather than a literal.
</p><pre class="programlisting">Bundle-Name: ${bundle.name}</pre></div><div class="navfooter"><hr><table summary="Navigation footer" width="100%"><tr><td align="left" width="40%"><a accesskey="p" href="ch05s02.html">Prev</a>&nbsp;</td><td align="center" width="20%"><a accesskey="u" href="ch05.html">Up</a></td><td align="right" width="40%">&nbsp;<a accesskey="n" href="ch05s04.html">Next</a></td></tr><tr><td valign="top" align="left" width="40%">&nbsp;</td><td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td><td valign="top" align="right" width="40%">&nbsp;</td></tr></table></div></body></html>