This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
<li><api name="nameAndExt" category="stable" group="property" type="export"> contains the name and extension of the file that is being created</api></li>
<li><api name="date" category="stable" group="property" type="export"> contains <code>String</code> representing the current day like <code>23. 3. 2007</code></api></li>
<li><api name="time" category="stable" group="property" type="export"> contains <code>String</code> the current time like <code>17:18:30</code></api></li>
<li><api name="dateTime" category="stable" group="property" type="export"> contains <code>java.util.Date</code> representing current data and time like</api></li>
<li><api name="encoding" category="stable" group="property" type="export"> contains <code>String</code> the file encoding of the template instance</api></li>
</ul>
if (!all.containsKey("time")) { // NOI18N
all.put("time", DateFormat.getTimeInstance().format(d)); // NOI18N
}
if (!all.containsKey("dateTime")) { // NOI18N
all.put("dateTime", d); // NOI18N
return Collections.unmodifiableMap(all);
"<h2>${date}</h2>" +
"<h3>${time}</h3>" +
"<h4>${user}</h4>" +
"<h4>${dateTime?string(\"yy\")}</h4>" +
"</html>";
os.write(txt.getBytes());
os.close();
if (res.indexOf("time") >= 0) fail(res);
if (res.indexOf("user") >= 0) fail(res);
if (res.indexOf("name") >= 0) fail(res);
if (res.indexOf("dateTime") >= 0) fail(res);
private static String readFile(FileObject fo) throws IOException {