<project name="CheckStyleCustom" default="distribute" basedir=".">
<target name="init">
<property name="destFile" value="checkstyle"/>
<property name="pluginName" value="com.atlassw.tools.eclipse.checkstyle_4.4.2"/>
<property name="pluginFile" value="${pluginName}-bin.zip"/>
<property name="coreJar" value="checkstyle-all-4.4"/>
<property name="jarFile" value="checkstyle_custom.jar"/>
<property name="encoding" value="utf-8"></property>
<property name="eclipseHome" value="C:\_zyf\eclipse"></property>
<tstamp>
<format property="TODAY" pattern="yyyyMMdd"/>
</tstamp>
</target>
<target name="distribute">
<antcall target="prepare"></antcall>
<antcall target="package"></antcall>
<antcall target="clean"></antcall>
</target>
<target name="prepare" depends="init">
<delete file="dist/${destFile}_${TODAY}.zip"/>
<unzip src="plugin/${pluginFile}"
dest="temp"
/>
<!-- Chinese Version Start-->
<unjar src="lib/${coreJar}.jar" dest="temp/${coreJar}">
</unjar>
<copy todir="temp/${coreJar}">
<fileset dir="chineseProperties"
excludes="**/*.txt"
/>
</copy>
<jar jarfile="temp/${coreJar}.jar">
<fileset dir="temp/${coreJar}"/>
</jar>
<copy file="temp/${coreJar}.jar"
todir="temp/plugins/${pluginName}/lib"/>
<delete dir="temp/${coreJar}"></delete>
<delete file="temp/${coreJar}.jar"></delete>
<!-- Chinese Version End-->
<jar jarfile="${jarFile}">
<fileset dir="bin"
includes="**"
excludes="**/*Test.class"
/>
</jar>
<copy file="${jarFile}"
todir="temp/plugins/${pluginName}/extension-libraries"
/>
<copy file="checkstyle_plugin.xml"
tofile="temp/plugins/${pluginName}/plugin.xml"
/>
<copy file="checkstyle.xml"
tofile="temp/plugins/${pluginName}/custom_checks.xml" encoding="utf-8">
<filterset begintoken="$${" endtoken="}">
<filter token="encoding" value="${encoding}"/>
</filterset>
</copy>
<copy file="header.txt"
todir="temp/plugins/${pluginName}"
/>
</target>
<target name="package" depends="init">
<zip destfile="dist/${destFile}_${TODAY}.zip"
basedir="temp"
/>
</target>
<target name="clean" depends="init">
<!--<delete dir="temp"/>-->
<mkdir dir="temp"/>
<delete file="${jarFile}"/>
</target>
<target name="install" depends="init">
<unzip src="dist/${destFile}_${TODAY}.zip"
dest="temp"
/>
<copy file="temp/features"
todir="${eclipseHome}"
/>
<copy file="temp/plugins"
todir="${eclipseHome}"
/>
<delete dir="temp"/>
<mkdir dir="temp"/>
</target>
</project>
相关推荐
安卓自动打包ant
Ant自动打包用的.
ant自动打包流程: 1.生成keystore, 签名时要用到. 可参考http://www.cnblogs.com/feisky/archive/2010/01/17/1650076.html 2.更改localproperties中的sdk.dir, 为你机器上环境的安装路径 3.更改ant下的路径, 可参考...
ant 打包
Android多渠道全自动打包发布工具,ant实现
ant打包rcp必备环境 eclipse-3.8.2-delta-pack eclipse-SDK-3.8.2-win32 org.eclipse.rcp-3.8.2
利用ant,自动化发布工程。具体过程包括:备份之前发布的工程,从svn checkout工程,编译工程,打包工程,关闭web服务器,删除已发布在web服务器的工程,复制打包的工程到web服务器,解压工程,启动web服务器。
安卓自动打包ant auto build Android Package
ant 多渠道自动打包 ,出现appt 没找到 ,去sdk里拷贝到指定目录
java项目ant打包脚本,包括环境变量设置,打包脚本等信息,共有三个文件 ant.bat、build.xml、setEnv.cmd
Ant自动打包,支持打包多个工程,合并xml,适合SDK开发者,一键出包,大家可根据自身项目需要做必要改动。
ant for java 打包工具详细介绍
ant 通过编写脚本就能进行java工程的自动发布
mac下是用ant对android App的多渠道打包工具。
使用ant打包android,使用ant打包android
Ant是一种基于Java的build工具。理论上来说,它有些类似于(Unix)C中的make ,但没有make的缺陷。 Ant就不同了。与基于shell命令的扩展模式不同,Ant用Java的类来扩展。
ant打包详细教程
在网页后台,使用Ant编译项目多渠道自动打包app应用
Android ant 自动打包脚本:自动替换友盟渠道、版本号、包名,而不影响代码(修改的是临时目录中的代码)。 如何集成到我的项目里 前提:了解android官方文档,在项目目录中执行官方命令能打包,比如常见的打包...
使用Ant编译打包