提交 25c91483 编写于 作者: sq3536's avatar sq3536

模板切分

上级 eac8730a
...@@ -46,7 +46,7 @@ public class Generate extends IbizLabGeneratorCommand { ...@@ -46,7 +46,7 @@ public class Generate extends IbizLabGeneratorCommand {
private List<String> templateDirs; private List<String> templateDirs;
@Option(name = {"--embed-template"}, title = "embed template name", @Option(name = {"--embed-template"}, title = "embed template name",
description = "special embed template name, e.g. r7 or r8 or ibiz-boot or doc, sets template name properties that can be load inner template from class-path/resources ") description = "special embed template name, e.g. r7 or r8 or ibizboot or doc, sets template name properties that can be load inner template from class-path/resources ")
private String embedTemplate; private String embedTemplate;
@Option(name = {"--template-path"}, title = "template files relative path", @Option(name = {"--template-path"}, title = "template files relative path",
......
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>ibizlab-generator-project</artifactId>
<groupId>cn.ibizlab</groupId>
<version>1.0-SNAPSHOT</version>
<relativePath>../../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>ibizlab-generator-template-apiclient</artifactId>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>ibizlab-generator-template-doc</artifactId>
<groupId>com.ibizlab</groupId>
<version>1.0-SNAPSHOT</version>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>ibizlab-generator-template-ibizboot</artifactId>
<groupId>com.ibizlab</groupId>
<version>1.0-SNAPSHOT</version>
</project>
\ No newline at end of file
...@@ -32,6 +32,11 @@ ...@@ -32,6 +32,11 @@
{{/if}} {{/if}}
{{/each}} {{/each}}
{{/eq}} {{/eq}}
<dependency>
<groupId>cn.ibizlab</groupId>
<artifactId>ibizlab-generator-template-ibizboot</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies> </dependencies>
......
...@@ -190,10 +190,10 @@ ...@@ -190,10 +190,10 @@
${basedir}/src/main/resources/model/{{replace packageName "." "/"}} ${basedir}/src/main/resources/model/{{replace packageName "." "/"}}
</inputSpec> </inputSpec>
<templateDirs> <templateDirs>
${basedir}/src/main/resources/templ/ibiz-boot ${basedir}/src/main/resources/templ/ibizboot
</templateDirs> </templateDirs>
<embedTemplate> <embedTemplate>
ibiz-boot ibizboot
</embedTemplate> </embedTemplate>
<packageName> <packageName>
${project.groupId} ${project.groupId}
...@@ -202,7 +202,13 @@ ...@@ -202,7 +202,13 @@
${parent.artifactId} ${parent.artifactId}
</name> </name>
</configuration> </configuration>
<dependencies>
<dependency>
<groupId>cn.ibizlab</groupId>
<artifactId>ibizlab-generator-template-ibizboot</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
......
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>ibizlab-generator-template-ibizlab</artifactId>
<groupId>com.ibizlab</groupId>
<version>1.0-SNAPSHOT</version>
</project>
\ No newline at end of file
此差异已折叠。
此差异已折叠。
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册