SimpleTag (AbstractJavaFxPackager packager, String deployOutDir, String relativeToBaseDirPath) { String htmlTemplate = packager.getHtmlTemplateFile(); if (!StringUtil.isEmpty(htmlTemplate)) { final String shortName = new File(htmlTemplate).getName(); if (!StringUtil.isEmpty(relativeToBaseDirPath)) { htmlTemplate = "${basedir}/" + FileUtil.getRelativePath(relativeToBaseDirPath, htmlTemplate, '/'); } return new SimpleTag("fx:template", Couple.of("file", htmlTemplate), Couple.of("tofile", deployOutDir + "/" + shortName)); } return null; }