1 Star 0 Fork 29

腰间两把刀/paoding-analysis

forked from 震秦/paoding-analysis 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.xml 3.50 KB
一键复制 编辑 原始数据 按行查看 历史
zhzhenqin@gmail.com 提交于 2013-07-05 10:43 . 删除了原来的注释
<?xml version="1.0" encoding="UTF-8"?>
<project name="paoding-analysis" default="default" basedir=".">
<description>Builds, tests, and runs the project ndetl.</description>
<property environment="env"/>
<property name="version" value="2.0.4"/>
<property name="project" value="paoding-analysis"/>
<property name="package" value="paoding"/>
<property name="domain" value="net"/>
<property name="author" value="LinLangyi, ZhenQin"/>
<property name="vendor" value="ZhenQin"/>
<property name="src.dir" location="src/main/java"/>
<property name="build.dir" location="target/ant/clesses" />
<property name="dist.dir" location="target/dist"/>
<property name="config.dir" location="src/main/resources" />
<property name="doc.dir" location="target/ant/javadoc"/>
<property name="web.root" location="./" />
<property name="lib.dir" location="target/dependency"/>
<property name="test.dir" location="src/test/java"/>
<path id="classpath">
<fileset dir="${lib.dir}" includes="**/*.jar"/>
</path>
<target name="makedir" description="建立文件夹">
<mkdir dir="${dist.dir}"/>
<mkdir dir="${build.dir}"/>
<mkdir dir="${lib.dir}"/>
<mkdir dir="${web.root}/META-INF" />
</target>
<target name="compile" depends="makedir" description="编译代码">
<!-- 编译所有的代码,Server and client -->
<javac srcdir="${src.dir}"
destdir="${build.dir}"
encoding="UTF-8"
includeantruntime="no"
excludes="**/test/*,**/test/bean/*,**/*.svn,*.svn"
includes="**/*.java"
source="1.6"
target="1.6"
deprecation="true"
failonerror="true"
debug="true">
<classpath refid="classpath" />
</javac>
<!-- 把所有文件copy到build目录 -->
<copy todir="${build.dir}">
<fileset dir="${src.dir}" includes="**/*" excludes="**/*.java" />
</copy>
<copy todir="${build.dir}">
<fileset dir="${config.dir}" includes="**/*"/>
</copy>
</target>
<!--生成Javadoc 文档 -->
<target name="javadoc" description="生成Javadoc文档.">
<delete dir="${doc.dir}"/>
<mkdir dir="${doc.dir}"/>
<javadoc destdir="${doc.dir}" windowtitle="${project} ${version} Javadoc" use="yes"
linksource="no"
splitindex="yes"
encoding="UTF-8"
docencoding="GBK"
locale="zh_CN">
<classpath refid="classpath"/>
<packageset dir="${src.dir}" defaultexcludes="yes">
<include name="${domain}/${package}/**"/>
</packageset>
</javadoc>
</target>
<target name="package" depends="compile" description="打包成Jar" >
<mkdir dir="${dist.dir}/${version}" />
<tstamp>
<format property="TODAY" pattern="yyyy-MM-dd HH:mm:ss"/>
<format property="TIME" pattern="yyMMddHHmm"/>
</tstamp>
<manifest file="${web.root}/META-INF/MANIFEST.MF">
<attribute name="Created-By" value="${author}"/>
<attribute name="Built-Date" value="${TODAY}"/>
<attribute name="Implementation-Title" value="${project}"/>
<attribute name="Implementation-Version" value="${version}"/>
<attribute name="Implementation-Vendor" value="${vendor}"/>
</manifest>
<!-- 打包所有的编译文件 -->
<jar jarfile="${dist.dir}/${version}/${project}-${version}.v${TIME}.jar"
basedir="${build.dir}" manifest="${web.root}/META-INF/MANIFEST.MF">
</jar>
</target>
<target name="destory" description="最后的清理" >
<delete includeemptydirs="true">
<fileset dir="${build.dir}" includes="**/*" />
</delete>
</target>
<target name="default" depends="package, destory">
</target>
</project>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/fanqq/paoding-analysis.git
git@gitee.com:fanqq/paoding-analysis.git
fanqq
paoding-analysis
paoding-analysis
master

搜索帮助