Details
-
Type:
New Feature
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:Eclipse 3.2
-
Number of attachments :
Description
Since Eclipse 3.2, it is possible to format a batch of code using the Eclipse Code Formatter, it would be interesting to add a eclipse:format goal to the Maven 2 Eclipse Plugin which would leverage that facility. The command line usage of the Eclipse Code Formatter is described here:
http://www.peterfriese.de/index.php/2007/05/28/formatting-your-code-using-the-eclipse-code-formatter/
A possible configuration would be:
<configuration>
<config>path/eclipse/code/formatter/config/file</config>
<includes>
<include></include>
</includes>
</configuration>
Thanx to that plugin, the code of a project could be automatically formatted upon packaging.
Regards,
Cédric
This functionality is already available in a separate plug-in hosted on Google code fyi:
http://code.google.com/p/maven-java-formatter-plugin/
Thank you
Misha