随笔-20  评论-3  文章-9  trackbacks-0
--javac工具-----------------------------------------

1、选择Tools->preferences->User tools->Add Tool->Program

2、参数如下:
Menu text: javac
Command: javac
Argument: $(FileName) 选择文件名
Initial directory: $(FileDir)


--java工具------------------------------------------

1、选择Tools->preferences->User tools->Add Tool->Program

2、参数如下:
Menu text: java
Command: java
Argument: $(FileNameNoExt) 选择无后缀文件名
Initial directory: $(FileDir)


--ant工具-----------------------------------------------

1、选择Tools->preferences->User tools->Add Tool->Program

2、参数如下:
Menu text: ant_compile
Command: ant
Argument: -f $(FileDir)/build.xml compile

3、build.xml

Xml代码
  1. <? xml   version = "1.0" ?>   
  2. < project   name = "struts"   basedir = "."   default = "" >   
  3.      < path   id = "classpath" >   
  4.          < fileset   dir = "lib" >   
  5.              < include   name = "*.jar" />   
  6.          </ fileset >   
  7.          < pathelement   path = "." />   
  8.      </ path >   
  9.   
  10.      < target   name = "compile"   description = "Compile all source code" >   
  11.          < javac   destdir = "classes"   debug = "true"   
  12.              deprecation = "false"   optimize = "false"   failonerror = "true" >   
  13.              < src   path = "src" />   
  14.              < classpath   refid = "classpath" />   
  15.          </ javac >   
  16.      </ target >   
  17.      </ project >   
posted on 2008-06-04 14:49 蓝山 阅读(297) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航: