1 Star 1 Fork 2

阳贤文/threadpool4j

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.xml 4.73 KB
一键复制 编辑 原始数据 按行查看 历史
傲风 提交于 2017-06-29 14:48 +08:00 . 文档与3.1.0版本保持一致
<project name="threadpool4j" basedir="." default="all">
<property name="project.name" value="threadpool4j"></property>
<property name="project.version" value="3.1.0"></property>
<property name="package.name" value="${project.name}-${project.version}"></property>
<property name="author" value="NieYong"></property>
<property name="organization" value="cn.aofeng"></property>
<property name="project.url" value="https://github.com/aofeng/threadpool4jj"></property>
<property name="src.dir" value="${basedir}/src"></property>
<property name="lib.dir" value="${basedir}/lib"></property>
<property name="build.dir" value="${basedir}/temp"></property>
<property name="dist.dir" value="${basedir}/dist"></property>
<property name="src.test.dir" location="${basedir}/test" />
<property name="lib.test.dir" value="${basedir}/libtest"></property>
<property name="target.unit-test.dir" location="${build.dir}/unit-test" />
<property name="target.cover-test.dir" location="${build.dir}/cover-test" />
<property name="target.report.dir" location="${build.dir}/report" />
<property name="target.unit-test-report.dir" location="${target.report.dir}/unit-test" />
<property name="target.cover-test-report.dir" location="${target.report.dir}/cover-test" />
<path id="app.classpath">
<fileset dir="${lib.dir}">
<include name="**/*.jar" />
</fileset>
<path location="${basedir}/conf" />
</path>
<path id="app.test.classpath">
<fileset dir="${lib.test.dir}">
<include name="**/*.jar" />
</fileset>
<path location="${basedir}/test" />
</path>
<target name="clean">
<delete dir="${build.dir}"></delete>
<delete dir="${dist.dir}"></delete>
</target>
<target name="prepare">
<mkdir dir="${build.dir}" />
<mkdir dir="${build.dir}/${package.name}" />
<mkdir dir="${dist.dir}" />
</target>
<target name="compile">
<javac srcdir="${src.dir}" destdir="${build.dir}/${package.name}" debug="on" source="1.6" includeantruntime="on">
<classpath refid="app.classpath">
</classpath>
</javac>
</target>
<target name="jar">
<jar destfile="${dist.dir}/${package.name}.jar" basedir="${build.dir}/${package.name}">
<manifest>
<attribute name="Built-By" value="${author}" />
<attribute name="Implementation-Vendor-Id" value="${organization}" />
<attribute name="Implementation-Vendor" value="${project.url}" />
<attribute name="Implementation-Title" value="${project.name}" />
<attribute name="Implementation-Version" value="${project.version}" />
</manifest>
</jar>
</target>
<target name="jar-src">
<jar destfile="${dist.dir}/${package.name}-sources.jar" basedir="${src.dir}">
<manifest>
<attribute name="Built-By" value="${author}" />
<attribute name="Implementation-Vendor-Id" value="${organization}" />
<attribute name="Implementation-Vendor" value="${project.url}" />
<attribute name="Implementation-Title" value="${project.name}" />
<attribute name="Implementation-Version" value="${project.version}" />
</manifest>
</jar>
</target>
<target name="compile.test" depends="compile">
<mkdir dir="${target.unit-test.dir}" />
<javac srcdir="${src.test.dir}" destdir="${target.unit-test.dir}"
debug="on" source="1.6" includeantruntime="on">
<classpath refid="app.classpath"></classpath>
<classpath refid="app.test.classpath"></classpath>
<classpath location="${build.dir}/${package.name}"></classpath>
</javac>
<copy todir="${target.unit-test.dir}">
<fileset dir="${src.test.dir}">
<include name="**/*.properties" />
<include name="**/*.xml" />
</fileset>
</copy>
</target>
<target name="unit-test" depends="compile.test">
<mkdir dir="${target.unit-test-report.dir}" />
<junit printsummary="on" haltonerror="off" haltonfailure="off" fork="on">
<formatter type="plain" usefile="off"/>
<formatter type="xml" usefile="on" />
<batchtest todir="${target.unit-test-report.dir}">
<fileset dir="${target.unit-test.dir}">
<include name="**/*Test.class"/>
</fileset>
</batchtest>
<classpath refid="app.classpath"></classpath>
<classpath refid="app.test.classpath"></classpath>
<classpath path="${build.dir}/${package.name}"></classpath>
<classpath path="${target.unit-test.dir}"></classpath>
</junit>
</target>
<target name="unit-test-report" depends="unit-test">
<mkdir dir="${target.unit-test-report.dir}/html" />
<junitreport todir="${target.unit-test-report.dir}">
<fileset dir="${target.unit-test-report.dir}">
<include name="TEST-*.xml" />
</fileset>
<report todir="${target.unit-test-report.dir}/html" />
</junitreport>
</target>
<target name="all" depends="clean, prepare, compile, jar, jar-src">
</target>
</project>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hierarch_yang/threadpool4j.git
git@gitee.com:hierarch_yang/threadpool4j.git
hierarch_yang
threadpool4j
threadpool4j
master

搜索帮助