ant打包jar的build.xml配置
来源:互联网 发布:vs php 扩展 编辑:程序博客网 时间:2024/05/20 23:31
<?xml version="1.0" encoding="UTF-8"?><project name="xxxx-extra" basedir="."><property name="src" value="./src/main/webapp/WEB-INF/classes" /><property name="targetsrc" value="./target" /><property name="dest" value="./target/bin" /><property name="jarname" value="./target/bin/xxxx-extra.jar" /><target name="init"><delete includeemptydirs="yes" dir="${dest}" /><mkdir dir="${dest}/classes" /><copy todir="${dest}" overwrite="yes"><fileset dir="${src}"><include name="applicationContext-extra.xml" /></fileset><fileset dir="${src}"><include name="extra.properties" /></fileset></copy><copy todir="${dest}/classes" overwrite="yes"><fileset dir="${src}"><include name="ABCSqlMapConfig.xml" /></fileset></copy><copy todir="${dest}/classes/com/xxxxsoft/xxxx/service/exchange" overwrite="yes"><fileset dir="${src}/com/xxxxsoft/xxxx/service/exchange"><include name="**/*.class" /></fileset></copy><copy todir="${dest}/classes/com/xxxxsoft/xxxx/model/exchange" overwrite="yes"><fileset dir="${src}/com/xxxxsoft/xxxx/model/exchange"><include name="Oexchange.xml" /></fileset></copy></target><target name="build-jar" depends="init"><jar jarfile="${jarname}" basedir="${dest}/classes"></jar></target><target name="mvn"><exec executable="cmd" failonerror="true"><arg value="/c" /><arg value="mvn" /><arg value="install:install-file" /><arg value="-Dfile=${dest}/xxxx-extra.jar" /><arg value="-DgroupId=com.xxxxsoft.xxxx" /><arg value="-DartifactId=xxxx-extra" /><arg value="-Dversion=2.1.4" /><arg value="-Dpackaging=jar" /></exec></target></project>以上,可以根据自己项目的要求改变todir和fileset内容,myeclipse中执行ant build即可
0 0
- ant打包jar的build.xml配置
- ant打包build.xml配置
- ant build.xml 打包可执行jar
- ant 混淆打包build.xml配置
- ant 打可执行jar的build.xml
- Ant打包的构建文件build.xml
- ant build.xml 打包应三方jar注意的问题与混淆R的写法
- Ant打包项目-build.xml
- ant-build.xml打包应用程序
- ANT打包 ,build.xml文件
- ant build.xml 打包war
- ant build.xml 配置
- ant build.xml配置
- 网络蚂蚁 ant 打jar包 通用build.xml配置
- [转] -- 蚂蚁 ant 打jar包 通用build.xml配置
- java ant 编译打包build.xml完整配置范例
- Ant的build.xml
- Ant 中的build.xml配置
- ns3不使用Ipv4AddressHelper的替代方法
- android 关于listView 显示不全的问题
- Objective C面向对象
- StringUtils.isBlank()函数
- 伪随机数生成器
- ant打包jar的build.xml配置
- api 和sdk 有什么区别
- 因果图法设计测试用例
- 如何正确的使用SharedPreferences?
- iPhone 4S/5/5C、iPad 2/3/4统统悲剧!
- SwipeListView 详解 实现微信,QQ等滑动删除效果
- Core Animation研究系列 : CGAffineTransformMake(a,b,c,d,tx,ty) 矩阵运算的原理
- 轻质无机保温砂浆
- “集群和负载均衡”等的通俗解释