1 Star 0 Fork 56

beiyouhan/autosoftline

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.xml 2.20 KB
一键复制 编辑 原始数据 按行查看 历史
<?xml version="1.0" encoding="UTF-8"?>
<project name="HuXB-Code-Generator1.0" default="help">
<property name="pkg.name" value="com.hxb" />
<property name="pkg.path" value="com/hxb" />
<property name="renamePkgPath" value="false"/>
<taskdef name="hxbCodeGenerator" classname="fmpp.tools.AntTask">
<classpath>
<pathelement location="lib/fmpp.jar" />
</classpath>
</taskdef>
<target name="help" description="==> print help">
<echo>SpringBoot+MyBatis+Security+Thymeleaf+(MySQL/Oracle/H2)辅助代码生成工具使用帮助</echo>
<echo>--------------------------------------------------------</echo>
<echo>> ant help 显示代码生成工具帮助信息</echo>
<echo>></echo>
<echo>> ant clean 清理生成的文件,只保留干净的工具运行环境</echo>
<echo>></echo>
<echo>> ant app 通过模板生成应用所需文件</echo>
<echo>></echo>
<echo>--------------------------------------------------------</echo>
</target>
<target name="template" >
<hxbCodeGenerator configuration="tpl" />
</target>
<target name="renameCondition">
<condition property="renameProperty">
<istrue value="${renamePkgPath}"/>
</condition>
</target>
<target name="renamePkgJava" depends="renameCondition" if="renameProperty">
<move todir="output/src/main/java/${pkg.path}/" overwrite="true" >
<fileset dir="output/src/main/java/com/hxb/">
<include name="**/**" />
</fileset>
</move>
</target>
<target name="renamePkgRes" depends="renameCondition" if="renameProperty">
<move todir="output/src/main/resources/mybatis/${pkg.path}/" overwrite="true" >
<fileset dir="output/src/main/resources/mybatis/com/hxb/">
<include name="**/**" />
</fileset>
</move>
</target>
<target name="app" depends="template, renamePkgJava, renamePkgRes" />
<target name="clean">
<delete dir="output" />
<delete>
<fileset dir="." includes="*.log" />
</delete>
</target>
</project>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/hanshed/autosoftline.git
git@gitee.com:hanshed/autosoftline.git
hanshed
autosoftline
autosoftline
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385