Bloof Browser User Guide
PrefaceWhat is Bloof?
Bloof is an infrastructure for analytical processing of version control data.
Its goal is helping developers, project managers and software engineering researchers in comprehending the evolution of a software system.
Bloof supports the following databaes:
Getting startedBefore you beginTo use Bloof, you will need a Java TM runtime environment version 1.4 or greater. Sun provides Java runtimes for Win32, Solaris and Linux from their website at http://www.javasoft.com/j2se/ . IBM also provides various Java runtimes for a number of platforms at http://www.ibm.com/java/jdk/download/ . When Java has been installed on your system, unpack the bloof distribution file to a directory in your file system. Then you are ready to analyse the software project of your choise. First steps with BloofBloof is an infrastructure for processing version control data. Its features are available to any Java program through the Bloof API. Here comes sample code for generating the XML result to STD OUT for the lines of code metric on the Bloof project itself, using a local Postgres database for data storage. This code can be used as reference public class BloofExample { public static void main(String[] args) { try { RepositoryLocation repo = new RepositoryLocation(":pserver:anonymous@cvs.sourceforge.net:/cvsroot/bloof:bloof:anoncvs"); LoginDetails loginDetails = new LoginDetails("anonymous", ""); ScmAccess cvs = new CvsAccess(repo, loginDetails, "bloof", "example cvs module"); DbAccess database = new DefaultDbAccess( "Postgres Databae on local machine", "bloof", "bloof", "jdbc:postgresql:fasel"); Bloof.importProject(cvs, database); MetricParameter metricParam = new MetricParameter(null,null,null); Metric metric = MetricRegistry.createMetric("Lines of code"); metric.setupMetric(metricParam); Bloof.runMetric(metric); metric.runMetric(); Bloof.exportResult("Lines of code",null); } catch (Exception e) { e.printStackTrace(); } } } Extended usageAdd your own metricsThe Bloof infrastructure makes it easy for the user to implement individual metrics and add them to the Bloof system. On the Bloof project website you can download the Bloof Metric SDK , a development kit for metrics. You just need to implement the "runMetric()" method and add the metric to the mertrics/ directory of Bloof. Further information about implementing you own metrics can be found in the documentatin of the Bloof Metric SDK . Project sourcesCVS controlled ProjectBloof is able to process all sorts of software projects that use CVS as version control system. The input data for processing is the cvs logfile for a module of your repository. This can be the main module or any other submodule. The following input methos are supported
How to generate cvs log fileUsing the command line cvs tool you can either:
Note, that you have to be able to access your repository. So be shure, that your CVSROOT variable and CVS_RSH are set correctly. For more details about CVS have a loot at http://www.cvshome.org . Data storage
Bloof processes the version control data and stores it in database tables. It accesses a database via
Internal McKoi DatabaseMckoi SQL Database is an SQL (Structured Query Language) Database management system written for the JavaTM platform. Mckoi SQL Database is optimized to run as a client/server database server for multiple clients, however it can also be embedded in an application as a stand-alone database. It is highly multi-threaded and features an extendable object-oriented engine. How to use McKoi with Bloof?
Bloof is shipped together with the McKoi database. If the user specifies the
You can also specify another connection to a McKoi database in the Bloof application. PostgreSQL DatabasePostgreSQL is an object-relational database management system (ORDBMS) based on POSTGRES, Version 4.2, developed at the University of California at Berkeley Computer Science Department. PostgreSQL is an open-source descendant of this original Berkeley code. It provides SQL92/SQL99 language support and other modern features. How to use Postgres with Bloof?A Postgres database is connected via the default JDBC interface. Bug Reporting GuidelinesWhen you find a bug in Bloof we want to hear about it. Your bug reports play an important part in making Bloof more reliable. The following suggestions are intended to assist you in forming bug reports that can be handled in an effective fashion. No one is required to follow them but it tends to be to everyone's advantage. We cannot promise to fix every bug right away. If the bug is obvious, critical, or affects a lot of users, chances are good that someone will look into it. It could also happen that we tell you to update to a newer version to see if the bug happens there. Or we might decide that the bug cannot be fixed before some major rewrite we might be planning is done. Or perhaps it is simply too hard and there are more important things on the agenda. Identifying BugsBefore you report a bug, please read and re-read the documentation to verify that you can really do whatever it is you are trying. If it is not clear from the documentation whether you can do something or not, please report that too; it is a bug in the documentation. If it turns out that the program does something different from what the documentation says, that is a bug. That might include, but is not limited to, the following circumstances:
Here "program" refers to any executable, not only the application. Being slow or resource-hogging is not necessarily a bug. Read the documentation or ask on one of the mailing lists for help in tuning your applications. Before you continue, check on the TODO list and in the FAQ to see if your bug is already known. If you cannot decode the information on the TODO list, report your problem. The least we can do is make the TODO list clearer. What to reportThe most important thing to remember about bug reporting is to state all the facts and only facts. Do not speculate what you think went wrong, what "it seemed to do" or which part of the program has a fault. If you are not familiar with the implementation you would probably guess wrong and not help us a bit. And even if you are, educated explanations are a great supplement to but no substitute for facts. If we are going to fix the bug we still have to see it happen for ourselves first. Reporting the bare facts is relatively straightforward (you can probably copy and paste them from the screen) but all too often important details are left out because someone thought it does not matter or the report would be understood anyway. The following items should be contained in every bug report:
Do not be afraid if your bug report becomes rather lengthy. That is a fact of life. It is better to report everything the first time than us having to squeeze the facts out of you. On the other hand, if your input files are huge, it is fair to ask first whether somebody is interested in looking into it. Do not spend all your time to figure out which changes in the input make the problem go away. This will probably not help solving it. If it turns out that the bug cannot be fixed right away, you will still have time to find and share your work-around. Also, once again, do not waste your time guessing why the bug exists. We will find that out soon enough. When writing a bug report, please choose non-confusing terminology. The software package in total is called Bloof. Where to report bugsIn general, announce bug reports to the bug report tracker at http://sourceforge.net/tracker/?group_id=71700 Do not send bug reports to any of the user mailing lists, such as bloof-users@sourceforge.net These mailing lists are for answering user questions and their subscribers normally do not wish to receive bug reports. More importantly, they are unlikely to fix them. Also, please do not send reports to the developers' mailing list bloof-developers@sourceforge.net This list is for discussing the development of Bloof and it would be nice if we could keep the bug reports separate. If you have a problem with the documentation, the best place to report it is the bug tracker . Please be specific about what part of the documentation you are unhappy with. |