eclim的编译安装及其使用

1、安装ANT

2、下载eclim源码并编译,详细可参考http://eclim.org/guides/development.html#development-build

ant -Declipse.home=/media/sanux/eclipse-jee-galileo-SR2-linux-gtk/ -Dplugins=ant,jdt

 

 

Eclim Developers Guide

This guide is intended mostly for those who wish to contribute to eclim by fixing bugs or adding new functionality, but the first section is also useful for users who would like to use the latest development version of eclim.

Checking out the code and building it.

  1. Check out the code:
$ git clone git://github.com/ervandew/eclim.git

Once you have a local git repository you can utilize the extensive local git functionality allowing you to commit code locally, create local branches, etc. For guidelines on managing patches and submitting them, please see the patch guide below.

  1. Build eclim:
$ cd eclim
$ ant -Declipse.home=/your/eclipse/home/dir

Note

If your eclipse home path contains a space, be sure to quote it:

> ant “-Declipse.home=C:/Program Files/eclipse”

This will build and deploy eclim to your eclipse and vim directories. If you don’t want to supply the eclipse home directory every time, you can set the environment variable ECLIM_ECLIPSE_HOME which the build script will then utilize.

Note

If your vimfiles directory is not located at the default location for your OS, then you can specify the location using the “vim.files” property:

$ ant -Dvim.files=<your vimfiles dir>

By default the above ant call will build all the eclim plugins, requiring you to have all the related dependencies already installed in your eclipse distribution. However, if you only want a subset of the eclim plugins to be built, you can specify so using the ‘plugins’ system property:

# build only ant and jdt (java) support
$ ant -Dplugins=ant,jdt

# build only cdt (c/c++) support
$ ant -Dplugins=cdt

# build only pdt (php) support (requires wst and dltk)
$ ant -Dplugins=wst,dltk,pdt

# build only ruby support (requires dltk)
$ ant -Dplugins=dltk,dltkruby

Note

On windows you will need to quote the plugins argument if you are building more than one plugin:

> ant “-Dplugins=ant,jdt”

The currently available list of plugin names include:

  • jdt: java support using the eclipse jdt.
  • ant: ant support (requires jdt).
  • maven: maven support.
  • wst: web development support using the eclipse wst.
  • cdt: c/c++ support using the eclipse cdt.
  • dltk: base support for dltk based lanugages (currently php and ruby).
  • pdt: php support using the eclipse pdt (requires wst and dltk).
  • dltkruby: ruby support using the eclipse dltk-ruby (requires dltk).

3、编译LOG

[san@localhost eclim_gitsrc]$ ant -Declipse.home=/media/sanux/eclipse-jee-galileo-SR2-linux-gtk/ -Dplugins=ant,jdt Buildfile: /media/sanux/downloads/eclim_gitsrc/build.xml deploy: gant: deploy: deploy.eclipse: build.eclipse: init: [echo] eclim.version: 1.5.8 ------ init [javac] : warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds [mkdir] Created dir: /media/sanux/downloads/eclim_gitsrc/build/temp/eclipse/plugins/org.eclim_1.5.8/lib [jar] Building jar: /media/sanux/downloads/eclim_gitsrc/build/temp/eclipse/plugins/org.eclim_1.5.8/eclim.jar [jar] Building jar: /media/sanux/downloads/eclim_gitsrc/build/temp/eclipse/plugins/org.eclim_1.5.8/eclim-misc.jar [copy] Copying 3 files to /media/sanux/downloads/eclim_gitsrc/build/temp/eclipse/plugins/org.eclim_1.5.8 [copy] Copying 11 files to /media/sanux/downloads/eclim_gitsrc/build/temp/eclipse/plugins/org.eclim_1.5.8/bin [exec] Building ng client. To build a Windows binary, type 'make ng.exe' [exec] gcc -Wall -pedantic -s -O3 -o ng src/c/ng.c [move] Moving 1 file to /media/sanux/downloads/eclim_gitsrc/build/temp/eclipse/plugins/org.eclim_1.5.8/bin [echo] [echo] building plugin: org.eclim [copy] Copying 28 files to /media/sanux/downloads/eclim_gitsrc/build/temp/eclipse/plugins/org.eclim_1.5.8 [echo] [echo] building plugin: org.eclim.core [mkdir] Created dir: /media/sanux/downloads/eclim_gitsrc/build/temp/eclipse/plugins/org.eclim.core_1.5.8 [javac] : warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds [jar] Building jar: /media/sanux/downloads/eclim_gitsrc/build/temp/eclipse/plugins/org.eclim.core_1.5.8/eclim.core.jar [copy] Copying 13 files to /media/sanux/downloads/eclim_gitsrc/build/temp/eclipse/plugins/org.eclim.core_1.5.8 [echo] [echo] building plugin: org.eclim.ant [mkdir] Created dir: /media/sanux/downloads/eclim_gitsrc/build/temp/eclipse/plugins/org.eclim.ant_1.5.8 [javac] : warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds [jar] Building jar: /media/sanux/downloads/eclim_gitsrc/build/temp/eclipse/plugins/org.eclim.ant_1.5.8/eclim.ant.jar [copy] Copying 5 files to /media/sanux/downloads/eclim_gitsrc/build/temp/eclipse/plugins/org.eclim.ant_1.5.8 [echo] [echo] building plugin: org.eclim.jdt [mkdir] Created dir: /media/sanux/downloads/eclim_gitsrc/build/temp/eclipse/plugins/org.eclim.jdt_1.5.8 [javac] : warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds [javac] Compiling 79 source files to /media/sanux/downloads/eclim_gitsrc/build/temp/classes [javac] Note: /media/sanux/downloads/eclim_gitsrc/src/java/org/eclim/plugin/jdt/util/JavaUtils.java uses or overrides a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [jar] Building jar: /media/sanux/downloads/eclim_gitsrc/build/temp/eclipse/plugins/org.eclim.jdt_1.5.8/eclim.jdt.jar [copy] Copying 28 files to /media/sanux/downloads/eclim_gitsrc/build/temp/eclipse/plugins/org.eclim.jdt_1.5.8 [jar] Updating jar: /media/sanux/downloads/eclim_gitsrc/build/temp/eclipse/plugins/org.eclim_1.5.8/lib/nailgun-0.7.1.jar [echo] [echo] building plugin: org.eclim.vimplugin [copy] Copying 6 files to /media/sanux/downloads/eclim_gitsrc/build/temp/eclipse/plugins/org.eclim.vimplugin_1.5.8 [jar] Building jar: /media/sanux/downloads/eclim_gitsrc/build/temp/eclipse/plugins/org.eclim.vimplugin_1.5.8/eclim-vimplugin.jar ------ build.eclipse [copy] Copying 101 files to /media/sanux/eclipse-jee-galileo-SR2-linux-gtk/plugins [exec] /bin/rm: cannot remove `/media/sanux/eclipse-jee-galileo-SR2-linux-gtk//eclim': No such file or directory [exec] /bin/rm: cannot remove `/media/sanux/eclipse-jee-galileo-SR2-linux-gtk//eclimd': No such file or directory [exec] Result: 1 ------ deploy.eclipse deploy.resources: [copy] Copying 2 files to /home/san/.eclim/resources ------ deploy.resources deploy.vim: build.vim: [mkdir] Created dir: /media/sanux/downloads/eclim_gitsrc/build/temp/vim [copy] Copying 220 files to /media/sanux/downloads/eclim_gitsrc/build/temp/vim [untar] Expanding: /media/sanux/downloads/eclim_gitsrc/lib/rope-0.9.2.tar.gz into /media/sanux/downloads/eclim_gitsrc/build/temp/vim/eclim/autoload/eclim/python ------ build.vim [copy] Copying 293 files to /home/san/.vim ------ deploy.vim ------ deploy BUILD SUCCESSFUL Total time: 35 seconds

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值