Eclipse formatting

20 views
Skip to first unread message

Oliver Gierke

unread,
Aug 4, 2008, 9:06:09 AM8/4/08
to architecture-rules-users
Is there a formatting preferences file for eclipse available to ensure
code formatting? I'd like to help implementing a few features but fear
to mess up a lot of existing code by using the autoformatting feature
of Eclipse.

Regards,
Ollie

Mike Nereson

unread,
Aug 4, 2008, 10:48:48 AM8/4/08
to architecture...@googlegroups.com
There is a jalopy.xml file. With maven you can run mvn jalopy:format which will format all the files in the project to the rules specified in jalopy.xml

It's the best that we have right now.

~ Mike Nereson

Mykola Nikishov

unread,
Aug 4, 2008, 10:58:14 AM8/4/08
to architecture...@googlegroups.com
Oliver Gierke <oliver...@once-media.de> writes:

Hi Oliver!

> Is there a formatting preferences file for eclipse available to ensure
> code formatting?

There is no such file.

Right now we are trying to setup jalopy plugin, but there are some
roadblocks on the way, see
http://code.google.com/p/architecturerules/issues/detail?id=58

> I'd like to help implementing a few features but fear
> to mess up a lot of existing code by using the autoformatting feature
> of Eclipse.

My choice is 'Format edited lines on save' feature available in the
latest 3.4, see
http://download.eclipse.org/eclipse/downloads/drops/R-3.4-200806172000/whatsnew3.4/eclipse-news-part2.html

--
MAN-UANIC

Mike Nereson

unread,
Aug 4, 2008, 11:12:22 AM8/4/08
to architecture...@googlegroups.com

Mykola Nikishov

unread,
Aug 4, 2008, 11:24:04 AM8/4/08
to architecture...@googlegroups.com
"Mike Nereson" <miken...@gmail.com> writes:

jalopy.xml from svn and http://jalopy.sourceforge.net/jalopy-eclipse/
may be a solution, but we don't have a formatting preferences file for
eclipse ;-)

--
MAN-UANIC

Mike Nereson

unread,
Aug 4, 2008, 11:45:59 AM8/4/08
to architecture...@googlegroups.com
Mykola, what IDE do you use? I rockin' out IntelliJ.


~ Mike Nereson

Mykola Nikishov

unread,
Aug 4, 2008, 11:59:31 AM8/4/08
to architecture...@googlegroups.com
"Mike Nereson" <miken...@gmail.com> writes:

> Mykola, what IDE do you use? I rockin' out IntelliJ.

IDEA is a great product, but... I use Eclipse.

--
MAN-UANIC

Oliver Gierke

unread,
Aug 4, 2008, 1:08:12 PM8/4/08
to architecture-rules-users
I'll check out the jalopy.xml file ;). Thanks for the info, guys.

Regards
Ollie

On Aug 4, 5:59 pm, Mykola Nikishov <mykola.nickis...@gmail.com> wrote:

Mykola Nikishov

unread,
Aug 4, 2008, 3:17:40 PM8/4/08
to architecture...@googlegroups.com
Mykola Nikishov <mykola.n...@gmail.com> writes:

>> Is there a formatting preferences file for eclipse available to ensure
>> code formatting?
>
> There is no such file.
>
> Right now we are trying to setup jalopy plugin, but there are some
> roadblocks on the way, see
> http://code.google.com/p/architecturerules/issues/detail?id=58

I think issue #58 fixed. So don't worry about formatting, just run 'mvn
jalopy:format' or 'mvn package' and sources would be formatted
automatically.

Btw, I use Maven Integration for Eclipse
(http://m2eclipse.sonatype.org/). It works great for me ;-)

--
MAN-UANIC

Reply all
Reply to author
Forward
0 new messages