build.xml模板
来源:互联网 发布:剿灭伊斯兰国 知乎 编辑:程序博客网 时间:2024/05/16 01:08
<?xml version="1.0" encoding="UTF-8"?>
<project name="Test" default="dist" basedir=".">
<!-- set global properties for this build -->
<property name="src" value="."/>
<property name="build" value="build"/>
<property name="dist" value="dist"/>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
</target>
<target name="compile" depends="init">
<!-- Compile the java code from ${src} into ${build} -->
<javac srcdir="${src}" destdir="${build}">
<!-- the libraries needed -->
<classpath>
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
</classpath>
</javac>
</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}/lib/MyProject-${DSTAMP}.jar" basedir="${build}"/>
</target>
<target name="clean">
<!-- Delete the ${build} and ${dist} directory trees -->
<delete dir="${build}"/>
</target>
</project>
<project name="Test" default="dist" basedir=".">
<!-- set global properties for this build -->
<property name="src" value="."/>
<property name="build" value="build"/>
<property name="dist" value="dist"/>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
</target>
<target name="compile" depends="init">
<!-- Compile the java code from ${src} into ${build} -->
<javac srcdir="${src}" destdir="${build}">
<!-- the libraries needed -->
<classpath>
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
</classpath>
</javac>
</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}/lib/MyProject-${DSTAMP}.jar" basedir="${build}"/>
</target>
<target name="clean">
<!-- Delete the ${build} and ${dist} directory trees -->
<delete dir="${build}"/>
</target>
</project>
- build.xml模板
- Ant build.xml 模板
- build.xml模板
- Ant build.xml (模板)
- build.xml文档模板
- ant build.xml模板
- build.xml 配置文档模板:
- 常用的Ant模板(BUILD.XML)
- 常用的Ant模板(BUILD.XML)
- 常用的Ant模板(BUILD.XML)
- Ant 编译、打包 build.xml 脚本模板
- Ant的build.xml脚本模板
- build模板
- ant build.xml 之 tomcat工程的通用模板
- ant集成junit自动测试的build.xml标准模板
- ant build.xml 之 tomcat工程的通用模板
- 建立web应用的 ant build.xml 模板
- ANT 安装使用及build.xml文档模板
- 同步LDAP和数据库的一个例子
- Ajax程序设计入门
- 用AJAX编写一个简单的相册
- 英语常用句型
- 研究生之惑2
- build.xml模板
- dot net 中的C#的重写(override)和重载(overload)的理解
- 在CSDN上开通我的博客。
- PL/SQL游标
- oracle 存储过程的基本语法
- SQL游标原理和使用方法
- C#调用oracle存储过程 最简单的实例
- MySQL的用户权限设置问题
- 中英文术语(收藏)