ANT工程打包文件
来源:互联网 发布:淘宝打假怎么套话 编辑:程序博客网 时间:2024/05/22 00:42
工作中经常用到ANT编译打包 虽然经常使用却不是经常写这些文件
现发一些上来 供平时看看 参考下 仔细看看就知道什么意思了
<project name="build_project" default="packaging">
<property name="ROOT" location="." />
<property name="SOURCE" location="${ROOT}/source" />
<property name="LIBRARY" location="${ROOT}/common_jar" />
<property name="WEBAPPS" location="${ROOT}/webapps" />
<property name="BUILD" location="${ROOT}/build" />
<path id="library.path">
<fileset dir="${LIBRARY}">
<include name="**/*.jar" />
</fileset>
</path>
<target name="init">
<delete dir="${BUILD}" />
</target>
<target name="prepare" depends="init">
<echo message="preparing web app files....." />
<copy todir="${BUILD}">
<fileset dir="${WEBAPPS}">
<include name="**/*.*" />
</fileset>
</copy>
<mkdir dir="${BUILD}/WEB-INF/lib" />
<copy todir="${BUILD}/WEB-INF/lib">
<fileset dir="${LIBRARY}">
<include name="*.jar" />
<exclude name="servlet.jar" />
</fileset>
</copy>
</target>
<target name="compile" depends="prepare">
<echo message="compiling source file......" />
<javac
srcdir="${SOURCE}"
destdir="${SOURCE}"
debug="off"
optimize="off"
deprecation="off"
fork="yes">
<classpath refid="library.path" />
</javac>
<echo message="making project jar file......." />
<jar jarfile="${BUILD}/WEB-INF/lib/teleland.jar"
filesonly="true"
update="true"
basedir="${SOURCE}"
includes="**/*.class, **/*.properties" />
</target>
<target name="packaging" depends="compile" >
<echo message="packaging files and create WAR ...." />
<jar jarfile="teleland.war"
filesonly="true"
update="true"
basedir="${BUILD}"
includes="**/*.*" />
</target>
</project>
- ANT工程打包文件
- ant打包Web工程
- Ant 给工程打包
- 用Ant 打包java工程为jar文件
- ant打包部署web工程
- ant--Java工程打包工具
- Android 工程用ant打包
- ant打包部署web工程
- Ant系列九:使用Ant将java工程打包成bat可执行性文件 .
- ANT 打包文件
- ant打包文件
- Ant打包war文件
- Android工程自动生成build.xml文件,并使用Ant打包Android工程
- 使用Ant将java工程打包成bat可执行性文件
- MyEclipse:ant打包部署web工程
- 通过ant脚本,编译打包android工程
- Ant打包Android工程的相关资料
- 通过ant脚本,编译打包android工程
- Struts+Spring+Hibernate快速入门
- Eclipse GUI 入门
- JavaME 开发流程详解
- Struts中如何用taglib实现下拉选择筐
- 在J2ME开发中解析XML
- ANT工程打包文件
- Junit in Action 读书笔记序
- sniffit的安装使用简述(linux)(http://www.xfocus.net/articles/200001/28.html)
- oracle架构的基础知识
- Welcome :)
- 最近忙于个人门户的设计,很久没更新了
- 比较全面的taglib标签库介绍
- 请不要重复发明轮子
- c#.net常用的小函数和方法集