Details
-
Type:
Task
-
Status: Resolved
-
Priority:
Minor
-
Resolution: Complete
-
Affects Version/s: 2.0.0.M1
-
Fix Version/s: 2.0.0.M2
-
Component/s: None
-
Labels:None
Description
Automate formatting of Spring Roo code. This will allow developers to contribute to Spring Roo project and mantain a valid code format.
Spring Roo will use Eclipse Java Code Format definition based on Google Style:
- References:
To do:
- Create "devel-resources" folder on Spring Roo project.
- Include eclipse-java-google-style_no-doc-format.xml
on previous folder
- Include plugin maven-java-formatter-plugin like:
<plugin> <groupId>com.googlecode.maven-java-formatter-plugin</groupId> <artifactId>maven-java-formatter-plugin</artifactId> <version>0.4</version> <configuration> <lineEnding>LF</lineEnding> <configFile>${devel.resources.path}/FORMATTER_NAME.xml</configFile> <excludes> <exclude>org/springframework/roo/bootstrap/Main.java</exclude> <exclude>org/springframework/roo/bootstrap/AutoProcessor.java</exclude> </excludes> </configuration> <executions> <execution> <goals> <goal>format</goal> </goals> </execution> </executions> </plugin>
- Update Spring Roo README.adoc indicating Code Style