crowdcode-de / KissMDA

Keep It Simple Stupid, MDA!
33 stars 8 forks source link

Cartridge kissmda-cartridges-simple-java: format the generated code using Eclipse framework #23

Closed lofidewanto closed 11 years ago

lofidewanto commented 11 years ago

See Maven plugin Java formatter OSS project as an example how to format the Java code with Eclipse.

lofidewanto commented 11 years ago

We should not put this feature in Core since it is independent of what we want to generate (Java, XML, C++, ...). We should put this in Java Cartridge.

lofidewanto commented 11 years ago

Done! I added the code formatter from Eclipse JDT just like Maven Java Formatter Plugin: https://code.google.com/p/maven-java-formatter-plugin to the cartridge simple-java.

Now all the Java codes are formatted. See this example: https://buildhive.cloudbees.com/job/crowdcode-de/job/KissMDA/ws/app-examples/kissmda-app-test/target/generated-sources/java/de/crowdcode/kissmda/testapp/Address.java