9 Star 14 Fork 2

joe-j/activemq

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.xml 2.59 KB
一键复制 编辑 原始数据 按行查看 历史
yjiang 提交于 2016-09-21 06:44 . No commit message
<?xml version="1.0" encoding="UTF-8"?>
<project name="module" default="build" basedir=".">
<!-- Project Properties -->
<xmlproperty file="src/module.xml" />
<property name="DEPENDS" value="default" />
<tstamp>
<format property="TODAY" pattern="yyMMdd" locale="zh,CN" />
<format property="BUILDNO" pattern="yyMMddHHmm" locale="zh,CN" />
</tstamp>
<!-- Path Definitions -->
<path id="classpath">
<pathelement location="lib/servlet-api-2.3.jar" />
<fileset dir="depends">
<include name="*.jar" />
</fileset>
<fileset dir="src/model">
<include name="*.jar" />
</fileset>
<fileset dir="src/WEB-INF/lib">
<include name="*.jar" />
</fileset>
</path>
<target name="build" description="build sever all" depends="compile">
<delete file="target/${module.name}_*.zip" />
<zip destfile="target/${module.name}_${module.version}_${BUILDNO}.zip" encoding="UTF-8">
<fileset dir="target/${module.name}">
<exclude name="**/classes/**" />
</fileset>
</zip>
<copy todir="../archives">
<fileset file="target/${module.name}_${module.version}_${BUILDNO}.zip" />
</copy>
<zip destfile="target/${module.name}_${module.version}_src.zip" encoding="UTF-8">
<fileset dir=".">
<exclude name="build/**" />
<exclude name="target/**" />
</fileset>
</zip>
</target>
<target name="compile" description="compile Java source">
<delete dir="target" quiet="false" />
<mkdir dir="target/classes" />
<copy todir="target/${module.name}">
<fileset dir="src">
<exclude name="**/java/**" />
</fileset>
</copy>
<replaceregexp file="target/${module.name}/module.xml" match="build>\d+" replace="build>${BUILDNO}" byline="true" />
<javac srcdir="src/model/java" destdir="target/classes" debug="true" encoding="utf-8" target='1.6' source="1.6" includeantruntime="false">
<classpath refid="classpath" />
</javac>
<jar destfile="target/${module.name}/WEB-INF/lib/${module.name}-${module.version}.jar" basedir="target/classes" excludes="**/*Test.class" />
</target>
<target name="help" description="display the Help message">
<echo message="Quick Start web application" />
<echo message="===========================" />
<echo />
<echo message="Main targets:" />
<echo />
<echo message="deploy deploy the package to target tomcat" />
<echo message="build webgiisoo module zip file" />
<echo message="compile compile Java code" />
<echo message="update update the depends according repository" />
<echo message="help display the Help message" />
<echo />
<echo />
</target>
</project>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/giiwa/activemq.git
git@gitee.com:giiwa/activemq.git
giiwa
activemq
activemq
master

搜索帮助