<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 5. 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> </td><th align="center" width="60%"> </th><td align="right" width="20%"> <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> </td><td align="center" width="20%"><a accesskey="u" href="ch05.html">Up</a></td><td align="right" width="40%"> <a accesskey="n" href="ch05s04.html">Next</a></td></tr><tr><td valign="top" align="left" width="40%"> </td><td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td><td valign="top" align="right" width="40%"> </td></tr></table></div></body></html> |