Compile JML with Eclipse? [message #253890] |
Fri, 18 June 2004 10:01  |
Eclipse User |
|
|
|
Hi,
I am trying to automate the compilation and execution of JML in Eclipse
(for those not familiar with JML: Just suppose I need a different compiler
and a different VM to compile and run my projects). The "killer" idea of
course is to write a plug-in which uses the jmlc compiler instead of the
jdt compiler. However, I wonder if I really have to go that far...
One "solution" I came up with was to create a new LaunchConfiguration
which simply called the jmlc compiler (all I had to do was copy the code
from the Java Application launch delegate and modify the classpath and
main type and voilà). However, this only works for one class (since I
copied the Java Application Launcher) and it does not actually start it,
but only compile it.
So in short: Is there a way of (easily) telling Eclipse to use:
1.) a specific compiler to compile a project
2.) a specific JVM to launch the produced code
(I am not afraid of writing a plug-in which does that---however, if I can
get around writing an own _compiler_ plug-in, I'd really be happy, since I
do not really want to copy the whole jdt-code... :))
Thanks for all your hints!
Philipp
|
|
|
Re: Compile JML with Eclipse? [message #253919 is a reply to message #253890] |
Fri, 18 June 2004 10:57  |
Eclipse User |
|
|
|
Originally posted by: olivier_thomannNO.ca.ibm.comSPAM
Le Fri, 18 Jun 2004 14:01:52 +0000 (UTC), Philipp.Bouillon@t-online.de
(Philipp Bouillon) a écrit :
>So in short: Is there a way of (easily) telling Eclipse to use:
>1.) a specific compiler to compile a project
>2.) a specific JVM to launch the produced code
>
>(I am not afraid of writing a plug-in which does that---however, if I can
>get around writing an own _compiler_ plug-in, I'd really be happy, since I
>do not really want to copy the whole jdt-code... :))
You might want to look at the usage of external builders and ant. If
your compiler can be invoked through an ant task, it should be pretty
simple to do that.
--
Olivier
|
|
|
Powered by
FUDForum. Page generated in 0.02624 seconds