<?xml version="1.0" encoding="UTF-8"?>
<project name="smppWapSender" default="proguard" basedir=".">
<!-- set global properties for this build -->
<property name="src" value="src"/>
<property name="build" value="bin"/>
<property name="dist" value="build"/>
<property name="report" value="report"/>
<property name="lib" value="proguard/lib"/>
<property name="smppWapSendByHsqlDb" value="lib/antlr-2.7.6rc1.jar;lib/asm.jar;lib/asm-attrs.jar;lib/c3p0-0.9.0.4.jar;lib/cglib-2.1.3.jar;lib/commons-collections-2.1.1.jar;lib/commons-logging-1.0.4.jar;lib/dom4j-1.6.1.jar;lib/ehcache-1.1.jar;lib/hibernate3.jar;lib/hsqldb.jar;lib/jaas.jar;lib/jaxen-1.1-beta-7.jar;lib/jdbc2_0-stdext.jar;lib/jdom.jar;lib/jta.jar;lib/log4j-1.2.11.jar;lib/smppapi.jar;lib/xerces-2.6.2.jar;lib/xercesImpl.jar;lib/xml-apis.jar;lib/xmlParserAPIs.jar"/>
<path id="classpath">
<pathelement path="${smppWapSendByHsqlDb}"/>
<pathelement path="${build}"/>
</path>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
<mkdir dir="${report}"/>
</target>
<target name="compile" depends="clean,init">
<!-- Compile the java code from ${src} into ${build} -->
<javac srcdir="${src}" destdir="${build}"
debug="off" target="1.4" classpathref="classpath"/>
</target>
<target name="debugcompile" depends="init">
<!-- Compile the java code from ${src} into ${build} -->
<javac srcdir="${src}" destdir="${build}"
debug="on" target="1.4" classpathref="classpath"/>
</target>
<target name="test" depends="compile">
<tstamp/>
</target>
<target name="dist" depends="compile">
<!-- Create the distribution directory -->
<mkdir dir="${dist}/lib"/>
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
<jar jarfile="${dist}/smppwap_in.jar" basedir="${build}"
excludes="**/test/*,**/*.dep2,**/.dep*/*,**/*.di"/>
</target>
<target name="debugdist" depends="debugcompile">
<!-- Create the distribution directory -->
<mkdir dir="${dist}/lib"/>
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
<jar jarfile="${dist}/smppwap_in.jar" basedir="${build}"
excludes="**/test/*,**/*.dep2,**/.dep*/*,**/*.di"/>
</target>
<target name="proguard" depends="dist">
<taskdef resource="proguard/ant/task.properties" classpath="${lib}/proguard.jar" />
<proguard configuration="proguard/proguard.pro" />
</target>
<target name="clean">
<!-- Delete the ${build} and ${dist} directory trees -->
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
</project>
分享到:
- 2009-01-14 13:09
- 浏览 3856
- 评论(1)
- 论坛回复 / 浏览 (1 / 2952)
- 查看更多
相关推荐
ant混淆打包
使用Ant编译打包
通过ant脚本,编译打包android工程。 编译打包android工程的ant脚本,Android官方提供的打包脚本。 有注释
ant标签说明、ant案例、ant与eclipse工具配置以及使用
SVN+ant 服务器代码打包编译流程详解,内含详细安装以及操作说明build.xml+build.properties详解,可以直接修改路径后打包编译SVN代码。
Android利用ant自动编译、修改配置文件、批量多渠道,打包生成apk文件 详见:http://www.cnblogs.com/ycxyyzw/p/4535459.html
使用ant编译打包应用程序,比较简单,适合初学者。
Ant编译打包android工程,签名,多渠道
ANT配置,打包,编译
demo所需的所有 jar 与demo。 直接下载后 按照csdn描述即可,此项目不包括 ant 混淆打包 混淆打包具体看我的csdn
3. 设置Jocky的一些基本属性,包括jocky.jar包的位置,以及混淆编译级别: 4. 当设置jocky的enable属性为true时,此时,Ant脚本中的javac编译命令,便会被自动替换成Jocky编译器;当设置enable属性为false时,...
介绍了如何通过ant进行java web工程的编译操作的详细配置
当应用hudson一类的自动化平台来构建Eclipse插件时,不能直接调用ANT工具来编译。本工具自动修改Eclipse的路径为 ${ECLIPSE_HOME},并且自动可查找相应插件。 使用方法: java -jar buildfileGenerator.jar build....
一个普通java程序用ant打包的列子,完整的,里面采用的是eclipse自带的编译插件进行的打包,需要结合eclipse中的插件一起使用
NULL 博文链接:https://phenom.iteye.com/blog/745159
因为项目的需要必须写一个ANDROID_ANT自动编译打包签名的脚本,终于奋斗了几天写完了,和大家分享一下
ant自动打包流程: 1.生成keystore, 签名时要用到. 可参考http://www.cnblogs.com/feisky/archive/2010/01/17/1650076.html 2.更改localproperties中的sdk.dir, 为你机器上环境的安装路径 3.更改ant下的路径, 可参考...
ant脚本编译出jar
mac下是用ant对android App的多渠道打包工具。