加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.xml 4.85 KB
一键复制 编辑 原始数据 按行查看 历史
ar-ming@live.cn 提交于 2017-02-27 13:20 . no commit message
<!-- Java CMPP API -->
<!-- Copyright (C) 1998 - 2002 by Xu Youming -->
<!-- This library is free software; you can redistribute it and/or -->
<!-- modify it under the terms of the GNU Lesser General Public -->
<!-- License as published by the Free Software Foundation; either -->
<!-- version 2.1 of the License, or (at your option) any later version. -->
<!-- -->
<!-- This library is distributed in the hope that it will be useful, -->
<!-- but WITHOUT ANY WARRANTY; without even the implied warranty of -->
<!-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -->
<!-- Lesser General Public License for more details. -->
<!-- You should have received a copy of the GNU Lesser General Public -->
<!-- License along with this library; if not, write to the Free Software -->
<!-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, -->
<!-- MA 02111-1307 USA -->
<!-- A copy of the LGPL can be viewed at -->
<!-- http://www.gnu.org/copyleft/lesser.html -->
<!-- Java CMPP API author: xuym@bc-info.net -->
<!-- Java CMPP API Homepage: http://cmppapi.sourceforge.net/ -->
<!-- $Id: build.xml,v 1.1 2008/03/19 02:56:56 xym Exp $ -->
<project name="batchsend" basedir="." default="api-jar">
<!-- Load in the build properties -->
<property file="build.properties"/>
<!-- Any libraries needed to build the base API go in here. -->
<path id="build.classpath">
<pathelement location="${lib}/commons-logging.jar"/>
<pathelement location="${lib}/log4j-1.2.5.jar"/>
</path>
<target name="init">
<tstamp/>
</target>
<!-- Build all -->
<target name="all" depends="init,jars"/>
<!-- Build the API -->
<target name="compile-api" depends="init">
<mkdir dir="${api-build}"/>
<javac srcdir="${api-src}" destdir="${api-build}" deprecation="true"
debug="${build.debug}">
<classpath refid="build.classpath"/>
</javac>
</target>
<!-- Build the cmppapi Jar file -->
<target name="api-jar" depends="init,compile-api">
<jar jarfile="${lib}/${api-jar}">
<fileset dir="${api-build}"/>
</jar>
</target>
<target name="clean-api" depends="init">
<delete dir="${api-build}"/>
<delete file="${lib}/${api-jar}"/>
</target>
<!-- Build the project jar files -->
<target name="jars" depends="init,api-jar"/>
<target name="clean-jars">
<delete>
<fileset dir="${lib}">
<include name="${api-jar}"/>
</fileset>
</delete>
</target>
<!-- Build the distribution. -->
<target name="dist" depends="init,really-clean,all">
<fail unless="releaseNumber">
You must supply a value for the "releaseNumber" property.
</fail>
<property name="releaseDir" value="${dist}/cmppapi-${releaseNumber}"/>
<mkdir dir="${releaseDir}"/>
<!-- Output Java build version info -->
<echo level="info" file="${releaseDir}/BUILDINFO">
This CMPPAPI distribution was built on the following:
JRE version: ${java.version}
JRE vendor: ${java.vendor} (${java.vendor.url})
Built on: ${os.name} ${os.version} architecture: ${os.arch}
</echo>
<copy todir="${releaseDir}" includeemptydirs="no">
<fileset dir="." defaultexcludes="true">
<exclude name="${build}/**/*.class"/>
<exclude name="${dist}/**/*"/>
<!-- Vim swap files -->
<exclude name="**/.*.sw?"/>
</fileset>
</copy>
<tar tarfile="${dist}/cmppapi-${releaseNumber}.tar" basedir="${releaseDir}"/>
<gzip src="${dist}/cmppapi-${releaseNumber}.tar" zipfile="${dist}/cmppapi-${releaseNumber}.tar.gz"/>
<delete file="${dist}/cmppapi-${releaseNumber}.tar"/>
</target>
<target name="clean-dist" depends="init">
<delete dir="${dist}"/>
</target>
<!-- Clean up -->
<target name="clean" depends="init,clean-dist,clean-api">
<delete dir="${build}"/>
</target>
<!-- Clean everything, including any editor backup files etc. -->
<target name="really-clean" depends="init,clean">
<delete>
<fileset dir="." defaultexcludes="no">
<include name="**/*~"/>
<include name="**/*.bak"/>
<include name="**/*-old"/>
</fileset>
</delete>
</target>
<target name="update-changelog" depends="init">
<exec executable="cvs2cl">
<arg value="--tags" />
<arg value="--separate-header"/>
<arg value="--utc"/>
<arg value="--prune"/>
</exec>
</target>
</project>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化