Eclipse Java style checking - run standalone? [message #115621] |
Tue, 11 November 2003 09:56  |
Eclipse User |
|
|
|
Originally posted by: chackoj.uk.ibm.com
Is there any way to run the eclipse java style checking standalone?
I would like to integrate the checkes into some unit tests I am writing, so
I want to get the results and deal with them in an automated way from within
JUnit.
In case I am using the wrong terms, I want to get all the warnings that turn
up in the Problems view, e.g. unused import statements
Thanks,
Joe.
- own opinions, etc. not representing employer etc. -
|
|
|
Re: Eclipse Java style checking - run standalone? [message #115709 is a reply to message #115621] |
Tue, 11 November 2003 11:04  |
Eclipse User |
|
|
|
Originally posted by: olivier_thomann.ca.ibm.comNOSPAM
Le Tue, 11 Nov 2003 14:56:15 -0000, "Joe Chacko" <chackoj@uk.ibm.com>
a écrit :
>Is there any way to run the eclipse java style checking standalone?
>I would like to integrate the checkes into some unit tests I am writing, so
>I want to get the results and deal with them in an automated way from within
>JUnit.
>In case I am using the wrong terms, I want to get all the warnings that turn
>up in the Problems view, e.g. unused import statements
You are talking about the Eclipse compiler. Yes, it can be used as a
standalong component.
See the JDT/Core page for details.
You can also use it inside ant using the JDT compiler adapter provided
by JDT/Core. If you use Ant 1.5 or above, you can actually set the
compiler warnings using the compilerarg nested element.
--
Olivier
|
|
|
Powered by
FUDForum. Page generated in 0.04353 seconds