2014年11月15日
摘要: 一、ant 属性设置,用 property 标签,详解如下: 特点 大小写敏感; 不可改变,先到先得,谁先设定,之后的都不能改变。 设置 1 、设置 name 和 value 属性值,比如: 2 、 设置 name 和 refid 属性值,比如: ,其中dao.compile.classpath 在别的地方定义。 3 、设置 name 和 location 属性值,比如: ,即将... 阅读全文
posted @ 2014-11-15 23:03 hwlsniper 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 1、编译 .java 文件,生成 .jar 包,代码如下: ... 阅读全文
posted @ 2014-11-15 20:24 hwlsniper 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 一、创建 java 项目(Eclipse 中),结构图如下: 1、创建 .java 文件,代码如下: package com.learn.ant; public class HelloWorld { public static void main(String[] args) { for(String arg : args) System.out... 阅读全文
posted @ 2014-11-15 18:01 hwlsniper 阅读(761) 评论(0) 推荐(0) 编辑
摘要: 一、下载 ant 插件,路径如下: http://ant.apache.org/bindownload.cgi 二、安装 ant 插件,解压下载下来的 ant 插件,配置环境变量(最好系统环境变量),如下: ANT_HOME:D:\learn_tool\apache-ant-1.9.4 还要将 ant 解压包中bin文件夹中的内容给配置到 path 环境变量中,如下: path : ;%ANT_H... 阅读全文
posted @ 2014-11-15 15:27 hwlsniper 阅读(248) 评论(0) 推荐(0) 编辑