Software Factory
To build BetterBeansBinding the following pieces of software are needed:
- JDK 5 or 6
- Mercurial 1.3 or later
- Maven 3.0.2. of later
You can build BBB either with the command line or within an IDE (see below for details). Instructions on Maven use can be found at Maven: The Definitive Guide
Continous Integration
The Continuous Integration is run by Hudson at https://services.tidalwave.it/hudson/. Two jobs are dedicated to BBB:
- The Nightly Build runs the most of tests and static analysis tools; it is run once per day at 00:00 CET and collects statistics about the history of the project.
- The normal build is executed every 5 minutes and does not collect any statistics; it should be used for testing new configurations of Hudson that could break a build, before applying them to the Nightly Build.
Quality metrics are delivered by Cobertura, FindBugs, PMD and CheckStyle.
API documentation
JavaDocs are automatically generated at each build and are available here:
| for the most recent nightly build (the link might be broken during the periodic build process) | http://services.tidalwave.it/hudson/job/BetterBeansBinding%20Nightly%20Build/ws/jdk/JDK_1.5.0_18/label/master/src/target/site/apidocs/index.html |
| for release 1.2.2 | http://kenai.com/svn/betterbeansbinding~svn/trunk/www/docs/apidocs/1.2.2/index.html |
Primary Maven goals
The most commonly use Maven goals are described below:
| Goal | Description |
|---|---|
mvn clean | Cleans any deliverable. |
mvn install | Creates all deliverables and runs tests. |
mvn install -Dmaven.test.skip=true | Creates all deliverables. |
mvn javadoc:javadoc | Creates the javadocs. |
mvn findbugs:findbugs | Runs the FingBugs static code analyzer and produces a report. |
mvn cobertura:cobertura | Runs the tests and produces a coverage report. |
Testing
Testing relies upon JUnit 4 and Mockito.
SigTest
SigTest is the facility for making sure that BBB sticks with the e original BeansBinding API. At the moment this facility is driven by Ant: run "ant sigtest" to check the API consistency. In future this operation will be mavenized as well.
Working with an IDE
This project uses Mercurial to manage its source code. The repository URL can be found at https://bitbucket.org/tidalwave/betterbeansbinding-src/
NetBeans 6.7
With NetBeans 6.7 things are easier since there's explicit Kenai support.
- Choose the menu "Team / Kenai / Get Sources from Kenai...".
- In the "Kenai Repository" row, press "Browse".
- Enter "betterbeansbinding" in the search box (case is not important) and press "Search".
- After a short delay you should see the "BetterBeansBinding" project in the list. Select it and press "Ok".
- Select the repository whose URL is https://kenai.com/hg/betterbeansbinding~src.
- Select the "Local Folder" in your disk. Press "Get from Kenai".
- After the clone is completed, a popup appears asking if you want top open the project. Press "Open Project..." and select the project "BetterBeansBinding (pom)"; also check "Open Required" and confirm.
Eclipse 3.5
We recommend Maven2 Plugin (see installation notes) and Mercurial Plugin.
- Download project: open new project wizard (File / New / Project or CTRL + N) and choose Mercurial / Clone repository using MercurialEclipse. Press Next and enter the URL of the repository location and press "Finish". Wait until the clone of the repository terminates.
- Import project as a Maven Project: File / Import / General / Maven Projects, press Next and as Root Directory choose entire workspace or the newly created project directory (betterbeansbinding), add project to a new working set if you prefer, press Finish.
- The project is imported. Enjoy!
.
IntelliJ Idea
WARNING: the information below is not updated, it still refers to the old Subversion repository.
- Select "New Project"
- Select "Import Project from external model"
- Select "Maven"
- Select the root directory of BBB (.../trunk/src)
- An item should appear in the list "Select Maven projects to import"; select it.





