-
Notifications
You must be signed in to change notification settings - Fork 4
1step Java Infrastructure
This is the description about what the project generated by 1step looks like.
src
|__main
| |__java <-- Source files to compile
| |__resources <-- Resources to copy
| |__webapp <-- For WARs
|__test
| |__java <-- Source files to compile (tests)
| |__resources <-- Resources to copy (tests)
|__target <-- Packages created here
| |__classes <-- Generated when compiling
| |__resources <-- Copied (and filtered) from resources
| |__test/classes <-- Generated when compiling tests
| |__test/resources <-- Copied (and filtered) from resources
|__reports <-- Test, coverage and other reports
Currently, only buildr is supported.
You can compile by
buildr compilepackage by
buildr packagetest by
buildr testCheckstyle and cobertura have been supported in current project. Both of them have been set to run as default task.
Checkstyle is a development tool to help programmers write Java code that adheres to a coding standard.
buildr [your_project_name]:checkstyleYou can customize your your own check by adjust rule in
[your_project_root]/config/checkstyle/checkstyle.xml
Cobertura is a free Java tool that calculates the percentage of code accessed by tests.
When you run test, cobertura will run automatically.
You can change cobertura configuration in buildfile. But you'd better keep your branch_rate and line_rate as 100, so god will bless you.
cobertura.check.branch_rate = 100
cobertura.check.line_rate = 100
You can get IntelliJ IDEA project by
buildr ideaand eclipse project by
buildr eclipse You can run Jetty as WAR container to run your web application by
buildr [your_project_name]:jetty- Spring MVC, the default MVC framework
- FreeMarker, the default view template engine
- JQuery, the default javascript library
- Twitter Bootstrap, the default css framework
- Modernizr, the default browser capability detector
Spring Data JPA, the default ORM framework