Development Rules• *Prepare* your workspace/project  – Window -> Preferences -> Java -> Code Style     • Clean up     • Fo...
Development Rules (contd.)• Format/Clean up the code regularly  – Right click -> Source -> Clean up     • Entire project o...
Development Rules (contd.)• Java coding  – Always use packages  – One class / file  – Never use System.out.print* methods•...
Useful commands• To make jar files  – jar cvf <jar file>.jar –C target/    com/evolvus/training/anisht/<*.class>  – jar cv...
Questions?
Thank You.
Training
Training
Upcoming SlideShare
Loading in …5
×

Training

155 views

Published on

Testing slidshare, some

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
155
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Training

  1. 1. Development Rules• *Prepare* your workspace/project – Window -> Preferences -> Java -> Code Style • Clean up • Formatter • Code templates – At least two source folders in Java project • src/main/java • src/test/java – Output folder • target
  2. 2. Development Rules (contd.)• Format/Clean up the code regularly – Right click -> Source -> Clean up • Entire project or just one file – Ctrl + Shift + F (format code)• PMD/ Style Check regularly – Right Click -> PMD -> Check code with PMD – Right Click -> Check Style -> Check code with Check Style
  3. 3. Development Rules (contd.)• Java coding – Always use packages – One class / file – Never use System.out.print* methods• Junit – Test class for every class• Check-in regularly – Don’t wait for coding to get over
  4. 4. Useful commands• To make jar files – jar cvf <jar file>.jar –C target/ com/evolvus/training/anisht/<*.class> – jar cvf <jar file>.jar –C target/ .• To generate javadoc for package – javadoc –d html –sourcepath srcmainjava com.evolus.training.anisht
  5. 5. Questions?
  6. 6. Thank You.

×