隨筆-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 藍山 閱讀(302) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 额济纳旗| 南宫市| 比如县| 扬州市| 江源县| 高台县| 金寨县| 刚察县| 闻喜县| 旺苍县| 乐昌市| 游戏| 黄浦区| 大新县| 新晃| 特克斯县| 伊春市| 德安县| 东港市| 苏尼特左旗| 简阳市| 仁化县| 绥中县| 松桃| 吉林省| 车致| 潞西市| 咸宁市| 新沂市| 沽源县| 内江市| 宝应县| 苍梧县| 福安市| 定州市| 浙江省| 东兴市| 临高县| 嘉义市| 涿鹿县| 铁岭县|