Whenever I need to make code formatted by Eclipse 'edible' for Apache, I just run it through
sed to change the tabs to spaces:

sed -i -e "s/\t/    /g" filename.java

Or, if I want to change lots of programs and don't feel like fixing them one at a time:

sed -i -e 's/\t/    /g" `find . -name *.java`

There may be a better way, but I didn't bother to find it.

Jay

Marc Prud'hommeaux wrote:
Albert-

Good question ... I just use vim (which makes reformatting code tedious, to say the least).

Perhaps one of the Eclipse users will speak up with their handy formatting tips...


On Jul 3, 2007, at 5:22 PM, Albert Lee wrote:

Marc,

Thanks for fixing the formatting problems.

Is there a Eclipse code formatter that meets the formating conventions
available for use?  I am trying to avoid any future mishaps again.

Albert Lee.

On 7/3/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Author: mprudhom
Date: Tue Jul  3 15:42:39 2007
New Revision: 553010

URL: http://svn.apache.org/viewvc?view=rev&rev=553010
Log:
OPENJPA-244 Fixed some formatting inconsistencies with the patch for
OPENJPA-244







Reply via email to