1 Star 0 Fork 27

roe/tankwar

forked from 狮子的魂/tankwar 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.xml 2.53 KB
一键复制 编辑 原始数据 按行查看 历史
狮子的魂 提交于 2013-11-16 16:26 . First commit of tankwar
<?xml version="1.0" encoding="UTF-8"?>
<project name="tankwar" default="usage" basedir=".">
<!--Initialize-->
<target name="init">
<echo message="------------------------------------------------------------"/>
<echo message="----------BUILDING JCSEG PACKAGE----------------------------"/>
<echo message=""/>
<property name="bottom" value="tankwar 2013"/>
<property name="jars" value="${basedir}"/>
<property name="sources" value="${basedir}/src"/>
<property name="classes" value="${basedir}/classes"/>
<property name="version" value="1.0-beta"/>
<property name="lib.dir" value="${basedir}/lib"/>
<property name="api" value="${basedir}/doc"/>
<delete dir="${classes}"/>
<delete dir="${api}"/>
<delete>
<fileset dir="${basedir}" includes="*.jar"/>
</delete>
<mkdir dir="${classes}"/>
<mkdir dir="${api}"/>
</target>
<path id="classpath">
<fileset dir="${lib.dir}" includes="**/*.jar"/>
</path>
<!--Build-->
<target name="build" depends="init">
<echo message="-------------Compiling Application--------------"/>
<echo message="${lib.dir}"/>
<javac srcdir="${sources}" destdir="${classes}">
<classpath>
<path id="classpath">
<fileset dir="${lib.dir}" includes="**/*.jar"/>
</path>
</classpath>
</javac>
</target>
<!--Archive-->
<target name="dist" depends="build">
<jar jarfile="${jars}/tankwar-${version}.jar" basedir="${classes}">
<!--class fileter-->
<include name="**/*"/>
<!--manifest information setting-->
<manifest>
<attribute name="Main-Class" value="org.lionsoul.tankwar.Battlefield"/>
<attribute name="Class-Path" value=""/>
</manifest>
</jar>
</target>
<!--Java document-->
<target name="all" depends="dist">
<echo message="------------Making Java Document------------------"/>
<javadoc packagenames="com.*"
sourcepath="${sources}"
destdir="${api}"
bottom="${bottom}"
charset="UTF-8"
author="false">
<classpath>
<pathelement location="${classes}"/>
</classpath>
</javadoc>
<jar jarfile="${jars}/tankwar-${version}-javadoc.jar" basedir="${api}" includes="**/*"></jar>
</target>
<target name="usage">
<echo message="*** tankwar ANT Build Script ***"/>
<echo message="Usage: "/>
<echo message=" ant [target]"/>
<echo message=""/>
<echo message=" target : "/>
<echo message=" build : Build Application"/>
<echo message=" dist : Build Application + Archive (JAR)"/>
<echo message=" all : Build Application + Archive + JavaDoc"/>
</target>
</project>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/roe/tankwar.git
git@gitee.com:roe/tankwar.git
roe
tankwar
tankwar
master

搜索帮助