Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Rebuilding CheckStyle PlugIn from source(CheckStyle PlugIn expects CRLF on Windows)
Rebuilding CheckStyle PlugIn from source [message #828268] Sat, 24 March 2012 13:56 Go to next message
Lars Gustafsson is currently offline Lars GustafssonFriend
Messages: 19
Registered: June 2010
Junior Member
I have to Rebuild the CheckStyle Eclipse PlugIn from source. It expects CRLF on Windows. My files have LF (The Linux/UNIX standard). It thinks a whole method is one line, which it's not, exceeding the max line length.

Where can I get the CheckSytle plugin source code. I managed to download CheckStyle 5.3 and build it from source with Maven. But it's not an Eclipse plugin. Can I install it or how do I get CheckStyle to understand that the end of line is LF and not CRLF eventhough I'm on Windows?

I know there's a setting to define the end of line character for the last line in the whole file. I've tried to set it to every alternative possible. CheckStyle still thinks a whole method is one line.
Re: Rebuilding CheckStyle PlugIn from source [message #828371 is a reply to message #828268] Sat, 24 March 2012 17:46 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1352
Registered: July 2009
Senior Member
On 03/24/2012 08:56 AM, Lars Gustafsson wrote:
> I have to Rebuild the CheckStyle Eclipse PlugIn from source. It expects
> CRLF on Windows. My files have LF (The Linux/UNIX standard). It thinks a
> whole method is one line, which it's not, exceeding the max line length.
> Where can I get the CheckSytle plugin source code. I managed to download
> CheckStyle 5.3 and build it from source with Maven. But it's not an
> Eclipse plugin. Can I install it or how do I get CheckStyle to
> understand that the end of line is LF and not CRLF eventhough I'm on
> Windows?
>
> I know there's a setting to define the end of line character for the
> last line in the whole file. I've tried to set it to every alternative
> possible. CheckStyle still thinks a whole method is one line.

Entering "checkstyle eclipse plugin" into Google lists a source forge
project as the top result. That appears to be the site for the plugin
you are working with.
Re: Rebuilding CheckStyle PlugIn from source [message #828467 is a reply to message #828371] Sat, 24 March 2012 21:37 Go to previous messageGo to next message
Lars Gustafsson is currently offline Lars GustafssonFriend
Messages: 19
Registered: June 2010
Junior Member
Yes, that's where I got my sourcecode from. (Actually there's a plugin site which links to the sourceforge site.) But that's not a plugin sourcecode project. I managed to build it with Maven. But Eclipse claims there are no plugins in the directory where my built project is in. I've never installed an Eclipse plugin which has been built from sourcecode (by me).

How do I get it into Eclipse?
Re: Rebuilding CheckStyle PlugIn from source [message #828538 is a reply to message #828467] Sun, 25 March 2012 00:12 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1352
Registered: July 2009
Senior Member
On 03/24/2012 04:37 PM, Lars Gustafsson wrote:
> Yes, that's where I got my sourcecode from. (Actually there's a plugin
> site which links to the sourceforge site.) But that's not a plugin
> sourcecode project. I managed to build it with Maven. But Eclipse claims
> there are no plugins in the directory where my built project is in. I've
> never installed an Eclipse plugin which has been built from sourcecode
> (by me).
> How do I get it into Eclipse?
The plugin site http://eclipse-cs.sourceforge.net/ seems to have a great
deal of information about installing and using the plugin.
Re: Rebuilding CheckStyle PlugIn from source [message #828752 is a reply to message #828538] Sun, 25 March 2012 08:18 Go to previous messageGo to next message
Lars Gustafsson is currently offline Lars GustafssonFriend
Messages: 19
Registered: June 2010
Junior Member
That site lets you donwload the plugin binaries. But if you click further you can also get the checkstyle source code. I want the checkstyle plugin sourcecode. And I can't find it at that site or any other site.

Not eclipse-cs.bin....
not checkstyle.src...
but
eclipse-cs.src
Re: Rebuilding CheckStyle PlugIn from source [message #828905 is a reply to message #828752] Sun, 25 March 2012 14:06 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1352
Registered: July 2009
Senior Member
On 03/25/2012 03:18 AM, Lars Gustafsson wrote:
> That site lets you donwload the plugin binaries. But if you click
> further you can also get the checkstyle source code. I want the
> checkstyle plugin sourcecode. And I can't find it at that site or any
> other site.
>
> Not eclipse-cs.bin....
> not checkstyle.src...
> but
> eclipse-cs.src
Use the eclipse-cs Project drop down on the far right hand side. Select
SourceForge project page. Form the resulting page go to Code-> CVS
Browse. You can browse individual file or go to the bottom and download
a complete source tar ball.

On the main site, they also appear to have forum support, and FAQ page,
and a Plugin extensions section for customizing the product. Your best
bet for help is to probably use these resources. The plugin is not
created/maintained by the Eclipse foundation so you aren't likely to
find detailed support on these forums.
Re: Rebuilding CheckStyle PlugIn from source [message #829050 is a reply to message #828905] Sun, 25 March 2012 19:52 Go to previous message
Lars Gustafsson is currently offline Lars GustafssonFriend
Messages: 19
Registered: June 2010
Junior Member
Thanks a lot! Now I found it.
Previous Topic:Two clicks on two different tabs interpretted as double-click
Next Topic:Remote debug breakpoint not working over VPN, local LAN OK
Goto Forum:
  


Current Time: Sun Dec 21 00:26:31 GMT 2014

Powered by FUDForum. Page generated in 0.02903 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software