Added template location to log.

This commit is contained in:
Erik C. Thauvin 2019-05-25 14:42:51 -07:00
parent c920adf2c5
commit 63f9ae8a03

View file

@ -240,7 +240,8 @@ public class VersionProcessor extends AbstractProcessor {
@SuppressFBWarnings({"PATH_TRAVERSAL_IN", "UAC_UNNECESSARY_API_CONVERSION_FILE_TO_PATH"})
private void writeTemplate(final String type, final VersionInfo versionInfo, final String template)
throws IOException {
final MustacheFactory mf = new DefaultMustacheFactory(getLocalFile(""));
final File dir = getLocalFile("");
final MustacheFactory mf = new DefaultMustacheFactory(dir);
final Mustache mustache = mf.compile(template);
final String templateName;
@ -252,7 +253,7 @@ public class VersionProcessor extends AbstractProcessor {
templateName = "default (Kotlin)";
break;
default:
templateName = mustache.getName();
templateName = mustache.getName() + " (" + dir.getAbsolutePath() + ')';
break;
}
note("Loaded template: " + templateName);