- 博客(83)
- 资源 (3)
- 收藏
- 关注
原创 -verbose -v -quiet -q -debug -d
如果是直接写ant,后面不加什么参数,那么有时候输出的信息会很少,比如有target(init)是创建一些目录,而这些目录已经存在,那么ant什么也不输出init:compile: [javac] E:\Document\AntProject\build.xml:14: warning: 'includeantruntime' was not set, defau
2012-02-29 17:14:44 1267
原创 -logfile -l
案例E:\Document\AntProject>ant -logfile message.log -dApache Ant(TM) version 1.8.2 compiled on December 20 2010Trying the default build file: build.xmlBuildfile: E:\Document\AntProject\build.xml
2012-02-29 16:07:30 524
原创 -lib 运行ant时指定jar
E:\Document\AntProject>ant -lib E:\Document\mysql.jar -debugApache Ant(TM) version 1.8.2 compiled on December 20 2010Trying the default build file: build.xmlBuildfile: E:\Document\AntProject\bui
2012-02-29 15:50:45 2962
原创 -debug -d
如果不写-debug或者-d,输出的信息会很少,写了-debug或是-d,不但会执行build.xml,而且会输出详尽的执行信息E:\Document\AntProject>ant -debugApache Ant(TM) version 1.8.2 compiled on December 20 2010Trying the default build file: build.x
2012-02-29 15:41:19 803
原创 -diagnostics
E:\Document\AntProject>ant -diagnostics------- Ant diagnostics report -------Apache Ant(TM) version 1.8.2 compiled on December 20 2010------------------------------------------- Implementati
2012-02-29 15:36:29 631
原创 -version 查看当前ant版本
-version 查看当前ant版本E:\Document\AntProject>ant -versionApache Ant(TM) version 1.8.2 compiled on December 20 2010查看java版本E:\Document\AntProject>java -versionjava version "1.6.0_26"Java(TM
2012-02-29 15:29:33 20139 1
原创 -help -h:列出所有的ant参数并做解释
E:\Document\AntProject>ant -hant [options] [target [target2 [target3] ...]]Options: -help, -h print this message -projecthelp, -p print project help information -versio
2012-02-29 15:26:43 777
原创 2.-projecthelp -p build.xml
这是一个Demo Ant构建文件 <!--ant -projecthelp 一个构建文件是由“工程(project)、目标(target)、任务(mkdir)”组成的, 如果project有description描述,输出descri
2012-02-29 15:03:00 363
原创 1.--projecthelp -p src\com\ankangqiao\Hello.java
package com.ankangqiao;public class Hello{ public static void main(){ System.out.println("HelloWorld"); }}
2012-02-29 15:02:51 455
原创 整数累加
/** * 整数累加 */ private void button1_Click(object sender, EventArgs e) { string number1 = textBox1.Text; string number2 = textBox2.Text;
2012-02-27 10:02:13 772
原创 分割邮件地址
/** * 分割邮件地址 */ private void button1_Click(object sender, EventArgs e) { string mail = textBox1.Text; string[] splitMail = mail.Split('@');
2012-02-24 08:38:23 2140
原创 表单,文本框 + 文本框 = 文本框,输入两个整数,求和
/** * 表单,文本框 + 文本框 = 文本框 * 输入两个整数,求和 */ private void button1_Click_1(object sender, EventArgs e) { // 取得文本框1和文本框2的值 string num
2012-02-24 08:17:36 3088
原创 整型转化为字符串2
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class Program { /** *整型转化为字符串2 */
2012-02-23 14:53:26 303
原创 整型转化为字符串1
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class Program { /** *整型转化为字符串1 */
2012-02-23 14:53:16 304
原创 字符串转化为整型2
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class Program { /** * 字符串转化为整型2 */
2012-02-23 14:53:04 299
原创 字符串转化为整型1
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class Program { /** * 字符串转化为整型1 */
2012-02-23 14:52:50 357
原创 表单,放着一个文本框和一个按钮,单击按钮,文本框隐藏
/** * 表单,放着一个文本框和一个按钮,单击按钮,文本框隐藏 */ private void button1_Click(object sender, EventArgs e) { textBox1.Hide(); }
2012-02-23 14:21:45 921
原创 表单,放着一个文本框和一个按钮,单击按钮,表单的标题改为文本框中的内容+你好
/** * 表单,放着一个文本框和一个按钮,单击按钮,表单的标题改为 * 文本框中的内容+你好。 */ private void button1_Click(object sender, EventArgs e) { string name = textBox1.Text;
2012-02-23 14:20:33 1564
原创 静态类
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ClassStudy{ class Test { public static void Main(string[] args) {
2012-02-23 13:23:49 294
原创 索引器
using System;namespace ClassStudy.Zheng { class My { private string name;// 索引值为0 private string household;// 索引值为1 /** * 索引器 */ public s
2012-02-23 13:23:39 392
原创 程序员抛出异常
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ClassStudy{ class Test { /** * 程序员抛出异常 */ public
2012-02-23 11:21:15 298
原创 异常
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ClassStudy{ class Test { /** * 异常 */ public stat
2012-02-23 11:21:07 241
原创 普通常量和类常量字段
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ClassStudy{ /** * 普通常量和类常量字段 */ class Test { public const float PI = 3.1
2012-02-23 11:20:50 502
原创 构造方法
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace Robot{ class TestPeople { static void Main(string[] args) {
2012-02-23 09:37:53 220
原创 机器人
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace Robot{ class TestMyRobot { static void Main(string[] args) {
2012-02-23 09:37:44 353
原创 当属性中得get和set仅仅只是设值和取值而不需加任何限制时
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ClassStudy{ class Program { static void Main(string[] args) {
2012-02-23 09:37:32 357
原创 使用属性时造成的死循环
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ClassStudy{ class Program { static void Main(string[] args) {
2012-02-23 09:37:18 483
原创 当属性中的set什么语句都没的时候
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ClassStudy{ class Program { static void Main(string[] args) {
2012-02-23 09:37:04 236
原创 属性,简化get和set
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ClassStudy{ class Program { static void Main(string[] args) {
2012-02-23 09:36:49 333
原创 继承和类类型转化
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ClassStudy{ class Test { /** * 继承和类类型转化 */ public static voi
2012-02-23 09:36:37 272
原创 普通的get和set
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ClassStudy{ class Program { static void Main(string[] args) { Pers
2012-02-22 15:20:33 288
原创 函数的参数不一定是要程序传值进去的,它也有可能不用传值,而是作为返回值,比如out
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class Class1 { /** * 函数的参数不一定是要程序传值进去的,它也有可能不用传值,而是作为返回值
2012-02-22 14:02:57 1026
原创 ref和out的函数重载问题
ref和out的函数重载问题两个函数如果一个函数的参数有ref或是out,而另外一个没有,其他的类型都是一样的,这两个函数可以重载例如 static void swap(int i1, int i2)和 static void swap(ref int i1, ref int i2)两个函数如果一个函数的参数有ref,另外一个有out,其他类型是一样的,这两个函数不可以重载
2012-02-22 13:51:56 451
原创 传址,ref,out
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class Class1 { static void Main(string[] args) {
2012-02-22 13:47:30 259
原创 读取文本文件,获取配置信息
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;namespace ConsoleApplication1{ class Program { /** * 读取文本文件,获取配置信息
2012-02-22 13:03:08 375
原创 读取文本文件,输出图书名字和价格
using System;using System.Text;using System.IO;namespace ConsoleApplication2{ class Program { static void Main(string[] args) { // 图书目录.txt内容如下 //
2012-02-22 11:35:33 1030
原创 键盘输入一行字符串,每个单词倒序输出
using System;namespace ConsoleApplication2{ class Program { // 键盘输入一行字符串,每个单词倒序输出 static void Main(string[] args) { Console.WriteLine("请输入一行字符串:");
2012-02-22 10:15:59 3992
原创 键盘输入一行字符串,每个字符倒序输出
using System;namespace ConsoleApplication2{ class Program { // 键盘输入一行字符串,倒序输出 static void Main(string[] args) { Console.WriteLine("请输入一行字符串:");
2012-02-22 10:11:14 5680
原创 输出指定字符串第一个字符所在的索引值
using System;namespace ConsoleApplication2{ class Program { static void Main(string[] args) { string str = "http://www.baidu.com/"; Console.WriteLine
2012-02-22 09:55:57 4074
原创 判断字符串是否以指定的字符串结尾
using System;namespace ConsoleApplication2{ class Program { static void Main(string[] args) { string str = "http://www.baidu.com/"; if(str.EndsWith("
2012-02-22 09:53:39 10214
com.genuitec.eclipse.export.wizard_9.0.0.me201211011550.jar
2016-06-06
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人