|
14 | 14 | */ |
15 | 15 |
|
16 | 16 | public class PluginProgectBuildTool { |
17 | | - private String projectPath = "E:/ideaWorkspaces/xwintop/xJavaFxTool/src/main/"; |
| 17 | + private String projectPath = "C:/IDEA/xwintop/xJavaFxTool/src/main/"; |
18 | 18 | // private String projectPath = ""; |
19 | 19 | private String resources = "resources/com/xwintop/xJavaFxTool/"; |
20 | | -// private String xmlPath = "assistTools/"; |
| 20 | +// private String xmlPath = "assistTools/"; |
21 | 21 | // private String xmlPath = "codeTools/"; |
22 | 22 | // private String xmlPath = "debugTools/"; |
23 | 23 | // private String xmlPath = "developTools/"; |
24 | | -// private String xmlPath = "games/"; |
25 | | - private String xmlPath = "littleTools/"; |
26 | | -// private String xmlPath = "webTools/"; |
| 24 | +// private String xmlPath = "epmsTools/"; |
| 25 | +// private String xmlPath = "games/"; |
| 26 | +// private String xmlPath = "littleTools/"; |
| 27 | + private String xmlPath = "webTools/"; |
27 | 28 | private String srcPath = "java/com/xwintop/xJavaFxTool/"; |
28 | 29 |
|
29 | | - private String pluginPath = "E:/ideaWorkspaces/xwintop/xJavaFxTool-plugin/"; |
| 30 | + private String pluginPath = "C:/IDEA/xJavaFxTool-plugin/"; |
30 | 31 |
|
31 | 32 | @Test |
32 | 33 | public void buildJava() throws Exception { |
@@ -65,6 +66,26 @@ public void buildJava() throws Exception { |
65 | 66 | } |
66 | 67 | } |
67 | 68 |
|
| 69 | + @Test |
| 70 | + public void buildJson() throws Exception { |
| 71 | + File[] fxmlFileList = new File(projectPath + resources + "fxmlView/" + xmlPath).listFiles(); |
| 72 | + for (File file : fxmlFileList) { |
| 73 | + if (file.isDirectory()) { |
| 74 | + continue; |
| 75 | + } |
| 76 | + String pluginProgectName = FilenameUtils.getBaseName(file.getName()); |
| 77 | + String pluginProgectPath = pluginPath + xmlPath + "x-" + pluginProgectName; |
| 78 | + System.out.println(PluginProgectPomBuildTool.getPluginList_Json(pluginProgectName,xmlPath)); |
| 79 | +// System.out.println("cd " + pluginProgectPath + "\n mvn package"); |
| 80 | + File pluginLibsJarFile = new File(pluginProgectPath + "/target/x-" + pluginProgectName + "-0.0.1.jar"); |
| 81 | + if (pluginLibsJarFile.exists()) { |
| 82 | + File pluginLibsFile = new File(pluginPath + "plugin-libs/" + xmlPath); |
| 83 | + FileUtils.copyFileToDirectory(pluginLibsJarFile, pluginLibsFile); |
| 84 | + } |
| 85 | +// break; |
| 86 | + } |
| 87 | + } |
| 88 | + |
68 | 89 | private void copyPluginFile(String path, String pluginProgectPath) { |
69 | 90 | try { |
70 | 91 | File fromFile = new File(projectPath + path); |
|
0 commit comments