Hi all, Willing to ease this redundant Spaces for Tabs format problem here is a text I propose to put in http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Contributors+Best+Practices
mixing informations from http://groups.csail.mit.edu/uid/wiki/index.php?title=Getting_Started#Configure_Your_Development_Environment http://cwiki.apache.org/confluence/display/GMOxDEV/Developing+Geronimo+in+Eclipse http://www.opensourcestrategies.com/ofbiz/ofbiz_eclipse.php here are some updated help to allow using spaces in place of tabs in source files in Eclipse 3. << We don't want tab characters in text files in SVN, because different editors and tools interpret tabs differently. All indentation should be done purely with spaces. To change tabs to spaces in Eclipse, change these preferences in Window -> Preferences -> 1. Java -> Code Style -> Code Formatter -> Show... -> Java Conventions [built-in] -> Indentation, select Tab policy as "space only". Enter a new name for this profile and click "OK". 2. Java -> Editor -> Typing, and check "Insert spaces for tab". 3. Ant -> Editor -> Formatter, and uncheck "Use tab character instead of spaces". 4. If you installed Colorer, Colorer Library Editor -> Uses spaces instead of tabs. 5. If you installed XML Buddy, XMLBuddy -> Formatting -> Uses spaces instead of tabs. 6. Unfortunaltely neither of the 2 main FreeMarker pluggin have similar functionnality yet. So for FTL files you have to do that manually with an external editor. >> For point 6 I'm not sure if there is not a better way to do that in Eclipse 3, any idea ? If some have time and experience maybe we could do the same thing for at least NetBeans ? BTW, it seems that groups.csail.mit.edu has a way to avoid finding tabs in source files : "Our Subversion repository will actually reject commits that include tabs in text files, so you'd better fix this now, or face pain later.". Could that possible in Apache SVN ? Jacques
