Added template location to log.
This commit is contained in:
parent
c920adf2c5
commit
63f9ae8a03
1 changed files with 3 additions and 2 deletions
|
@ -240,7 +240,8 @@ public class VersionProcessor extends AbstractProcessor {
|
||||||
@SuppressFBWarnings({"PATH_TRAVERSAL_IN", "UAC_UNNECESSARY_API_CONVERSION_FILE_TO_PATH"})
|
@SuppressFBWarnings({"PATH_TRAVERSAL_IN", "UAC_UNNECESSARY_API_CONVERSION_FILE_TO_PATH"})
|
||||||
private void writeTemplate(final String type, final VersionInfo versionInfo, final String template)
|
private void writeTemplate(final String type, final VersionInfo versionInfo, final String template)
|
||||||
throws IOException {
|
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 Mustache mustache = mf.compile(template);
|
||||||
|
|
||||||
final String templateName;
|
final String templateName;
|
||||||
|
@ -252,7 +253,7 @@ public class VersionProcessor extends AbstractProcessor {
|
||||||
templateName = "default (Kotlin)";
|
templateName = "default (Kotlin)";
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
templateName = mustache.getName();
|
templateName = mustache.getName() + " (" + dir.getAbsolutePath() + ')';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
note("Loaded template: " + templateName);
|
note("Loaded template: " + templateName);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue