Configuring Eclipse without the installer

1,674 views
Skip to first unread message

Adriaan Peeters

unread,
Aug 5, 2009, 3:24:52 PM8/5/09
to Project Lombok
Hi,

I was just wondering whether it would be possible to configure Eclipse
to use Lombok without using the installer and without modifying the
eclipse.ini file. Isn't it possible to just drop the jar in the
Eclipse plug-ins folder? (That would also make it possible to use an
update site)

Adriaan

Reinier Zwitserloot

unread,
Aug 5, 2009, 3:28:35 PM8/5/09
to Project Lombok
lombok isn't an eclipse plugin because most of the JDT (The Java
Development Toolkit - that part of eclipse that is the java editor,
compiler, the thing that generates auto-complete, etc, etc) isn't open
for plugins to modify. You can start the installer and click the 'what
do I do' link if you want to make the modifications by hand.

You can use command line arguments (I believe the -vm argument) when
running the eclipse executable if you just don't want to modify your
eclipse.ini file.

We may at some point build an eclipse plugin, mostly to offer
quickfixes (quickfix: Add @Getter in response to a missing getFoo()
method, for example), and this plugin can run the installation
process, but, you'd still have to restart eclipse, and it would still
modify your eclipse.ini.

Technically, IF your eclipse was started on a JVM v1.6 or up, it could
be possible to on-the-fly rewrite eclipse's parser code even if its
already loaded. But, that would be rather complicated, and for now
many mac os x users in particular still start eclipse on jvm 1.5.

Reinier Zwitserloot

unread,
Jul 19, 2012, 9:53:30 AM7/19/12
to project...@googlegroups.com
Whoa. Awesome work!

I've updated the issue for this feature at http://code.google.com/p/projectlombok/issues/detail?id=324

On Thursday, July 19, 2012 1:59:03 PM UTC+2, Peter Mucha wrote:
Today i tried this and it works. I bundled lombok in an eclipse plugin and added touchpoint instructions. After the installation via update-site, a lombokized eclipse starts :)
i somewhere read about an lombok eclipse plugin.. maybe you want to use this technique for easier installation of lombok

Am Mittwoch, 18. Juli 2012 17:11:36 UTC+2 schrieb Peter Mucha:
Maybe a late answer but i am interested in this topic too.
I did not have the time to try this (but i will soon), but wouldn't it be possible to use p2.inf-information to install lombok via an eclipse-update-site.
Mainly, to install lombok, additional eclipse arguments are needed in the eclipse.ini file.
This file can be modified during installation and removal of plugins using touchpoint actions (in this case, i suppose "addJVMArg" and "removeJVMArg")
Info at: http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/p2_actions_touchpoints.html
could it be possible to make it work in that way?
Peter

Marvin Froeder

unread,
May 2, 2013, 1:19:01 PM5/2/13
to project...@googlegroups.com
Did anyone started any code with this?

I would like to contrib.


--
You received this message because you are subscribed to the Google
Groups group for http://projectlombok.org/
 
To post to this group, send email to project...@googlegroups.com
To unsubscribe from this group, send email to
project-lombo...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/project-lombok?hl=en

Peter Mucha

unread,
May 3, 2013, 3:55:07 AM5/3/13
to project...@googlegroups.com, vel...@gmail.com
na... it does not seem that anything has happened. but anyway, i could give you the things i did to make this work, if you want... 

Yannick Mauray

unread,
Jan 30, 2014, 5:33:22 AM1/30/14
to project...@googlegroups.com, vel...@gmail.com
Le vendredi 3 mai 2013 09:55:07 UTC+2, Peter Mucha a écrit :
na... it does not seem that anything has happened. but anyway, i could give you the things i did to make this work, if you want...

Hi, 

I'm a little late, I realize that, but I'd be insterested in looking at your code. We'd love to be able to install and update lombok as an eclipse plugin too, and if we manage to do something clean, we will gladly contribute it back to the project.

Unless of course, something has been made since may 2013.
 

Reinier Zwitserloot

unread,
Jan 31, 2014, 12:39:37 AM1/31/14
to project-lombok
We have a branch for this but I don't think much has been done on it.

It's this one:



 --Reinier Zwitserloot


--
You received this message because you are subscribed to the Google Groups "Project Lombok" group.
To unsubscribe from this group and stop receiving emails from it, send an email to project-lombo...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Jesper Knudsen

unread,
Jan 31, 2014, 8:54:13 AM1/31/14
to project...@googlegroups.com
Hi 
I always start eclipse using a windows command script or linux shell script with reference to a lombok.jar in my project lib folder or local maven repository with:

----- clip from my windows command file ----

set M2_REPO=%USERPROFILE%\.m2

set LOMBOK_VERSION=1.12.2
set LOMBOK_JAR=%M2_REPO%\repository\org\projectlombok\lombok\%LOMBOK_VERSION%\lombok-%LOMBOK_VERSION%.jar

start /B /D%ECLIPSE_HOME% eclipse.exe -clean -data %WORKSPACES_DIR% -vm %JAVA_HOME%\bin\javaw -vmargs -Dosgi.requiredJavaVersion=1.6 -Xms256m -Xmx2048m -javaagent:%LOMBOK_JAR% -Xbootclasspath/a:%LOMBOK_JAR%

----- clip from my windows command file ----

This way I am always in control of the lombok jar that I use in the project and just have to update the LOMBOK_VERSION variable to run on a different lombok version.
In my maven pom or ivy build files i refer to this environment variable.

Br. Jesper
Reply all
Reply to author
Forward
0 new messages