|
|
@ -7,10 +7,12 @@ import xyz.wbsite.dbtool.javafx.manger.ProjectManager;
|
|
|
|
import xyz.wbsite.dbtool.javafx.manger.XmlManager;
|
|
|
|
import xyz.wbsite.dbtool.javafx.manger.XmlManager;
|
|
|
|
import xyz.wbsite.dbtool.javafx.po.*;
|
|
|
|
import xyz.wbsite.dbtool.javafx.po.*;
|
|
|
|
import xyz.wbsite.dbtool.javafx.tool.Tool;
|
|
|
|
import xyz.wbsite.dbtool.javafx.tool.Tool;
|
|
|
|
|
|
|
|
import xyz.wbsite.dbtool.web.framework.IDgenerator;
|
|
|
|
|
|
|
|
|
|
|
|
import java.io.File;
|
|
|
|
import java.io.File;
|
|
|
|
import java.util.Date;
|
|
|
|
import java.util.Date;
|
|
|
|
import java.util.HashMap;
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
|
|
|
import java.util.UUID;
|
|
|
|
import java.util.concurrent.Callable;
|
|
|
|
import java.util.concurrent.Callable;
|
|
|
|
|
|
|
|
|
|
|
|
public class SpringBootCallable implements Callable {
|
|
|
|
public class SpringBootCallable implements Callable {
|
|
|
@ -723,13 +725,23 @@ public class SpringBootCallable implements Callable {
|
|
|
|
Tool.outputResource(option + "/resources/templates/layout/index.ftl", new File(layout.getAbsolutePath(), "index.ftl"));
|
|
|
|
Tool.outputResource(option + "/resources/templates/layout/index.ftl", new File(layout.getAbsolutePath(), "index.ftl"));
|
|
|
|
Tool.outputResource(option + "/resources/templates/layout/app.ftl", new File(layout.getAbsolutePath(), "app.ftl"));
|
|
|
|
Tool.outputResource(option + "/resources/templates/layout/app.ftl", new File(layout.getAbsolutePath(), "app.ftl"));
|
|
|
|
Tool.outputResource(option + "/resources/templates/screen/demo.ftl", new File(screen.getAbsolutePath(), "demo.ftl"));
|
|
|
|
Tool.outputResource(option + "/resources/templates/screen/demo.ftl", new File(screen.getAbsolutePath(), "demo.ftl"));
|
|
|
|
Tool.outputResource(option + "/resources/templates/screen/index.ftl", new File(screen.getAbsolutePath(), "index.ftl"));
|
|
|
|
|
|
|
|
Tool.outputResource(option + "/resources/templates/screen/home.ftl", new File(screen.getAbsolutePath(), "home.ftl"));
|
|
|
|
Tool.outputResource(option + "/resources/templates/screen/home.ftl", new File(screen.getAbsolutePath(), "home.ftl"));
|
|
|
|
Tool.outputResource(option + "/resources/templates/screen/login.ftl", new File(screen.getAbsolutePath(), "login.ftl"));
|
|
|
|
Tool.outputResource(option + "/resources/templates/screen/login.ftl", new File(screen.getAbsolutePath(), "login.ftl"));
|
|
|
|
Tool.outputResource(option + "/resources/templates/403.ftl", new File(templates.getAbsolutePath(), "403.ftl"));
|
|
|
|
Tool.outputResource(option + "/resources/templates/403.ftl", new File(templates.getAbsolutePath(), "403.ftl"));
|
|
|
|
Tool.outputResource(option + "/resources/templates/404.ftl", new File(templates.getAbsolutePath(), "404.ftl"));
|
|
|
|
Tool.outputResource(option + "/resources/templates/404.ftl", new File(templates.getAbsolutePath(), "404.ftl"));
|
|
|
|
Tool.outputResource(option + "/resources/templates/500.ftl", new File(templates.getAbsolutePath(), "500.ftl"));
|
|
|
|
Tool.outputResource(option + "/resources/templates/500.ftl", new File(templates.getAbsolutePath(), "500.ftl"));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
HashMap<String, Object> ctx = new HashMap<String, Object>();
|
|
|
|
|
|
|
|
ctx.put("basePackage", project.getProjectBasePackage());
|
|
|
|
|
|
|
|
ctx.put("tool", new Tool());
|
|
|
|
|
|
|
|
ctx.put("author", project.getProjectAuthor());
|
|
|
|
|
|
|
|
ctx.put("date", new Date());
|
|
|
|
|
|
|
|
ctx.put("modules", project.getModules());
|
|
|
|
|
|
|
|
freeMarkerManager.outputTemp(new File(screen.getAbsolutePath(), "index.ftl"), option + "/resources/templates/screen/index.ftl", ctx);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (Module mo : project.getModules()) {
|
|
|
|
for (Module mo : project.getModules()) {
|
|
|
|
if (mo.isHasSysFields()) {//标准模型才好生成简单的htm
|
|
|
|
if (mo.isHasSysFields()) {//标准模型才好生成简单的htm
|
|
|
|