| | |
| | | package com.stylefeng.guns.generator.engine.base; |
| | | |
| | | import com.stylefeng.guns.core.util.ToolUtil; |
| | | import com.sun.javafx.PlatformUtil; |
| | | import org.beetl.core.Configuration; |
| | | import org.beetl.core.GroupTemplate; |
| | | import org.beetl.core.Template; |
| | |
| | | protected void generateFile(String template, String filePath) { |
| | | Template pageTemplate = groupTemplate.getTemplate(template); |
| | | configTemplate(pageTemplate); |
| | | if (PlatformUtil.isWindows()) { |
| | | if (System.getProperty("os.name").startsWith("Windows")) { |
| | | filePath = filePath.replaceAll("/+|\\\\+", "\\\\"); |
| | | } else { |
| | | filePath = filePath.replaceAll("/+|\\\\+", "/"); |