Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: significantly increases build time

The metric plugin is enabled and disabled per Java project. In any Java Perspective, open the project\'s Properties. Select the \'Metrics\' tab and check or uncheck the \'Enable Metrics Gathering\' checkbox. Clicking \'OK\' now causes the project to rec

Tutorial Details:

When exporting HTML, you can elect to create a histogram for each metric (does not work on Mac OSX). The appropriate metric\'s histogram will be displayed on each page. See here for an example of some exported metrics. If this feature is enabled, a \'Dashboard\' will also be produced, containing the collected histograms for the project.

Metrics do not have to be enabled on the project in order to export.

Excluding Java Files
If you have Java files for which you do not want to have metrics calculated, you can exclude them. To do this, open the project\'s Properties in any Java Perspective and select the \'Metrics\' tab. You can either choose the files to ignore by browsing the file system (press \'Add Files...\') or you can enter a (Perl5) regular expression that matches the file path (press \'Add Regex...\').

Regular expressions are particularly useful when you have a naming convention for classes such as Mocks, Visitors, Mementos, etc. As an example, if you want to exclude all classes with \'Mock\' in the path , you could specify the regex \".*Mock.*\".


 

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
significantly increases build time

View Tutorial:
significantly increases build time

Related Tutorials:

To jar or not to jar? - JavaWorld - July 1998
To jar or not to jar? - JavaWorld - July 1998
 
The state of Java middleware, Part II: Enterprise JavaBeans - JavaWorld - April 1999
The state of Java middleware, Part II: Enterprise JavaBeans - JavaWorld - April 1999
 
An instrumentation network for weather data on the Web
An instrumentation network for weather data on the Web
 
Make room for JavaSpaces, Part 3 - JavaWorld March 2000
Make room for JavaSpaces, Part 3 - JavaWorld March 2000
 
Alternative deployment methods, Part 1: Beyond applets - JavaWorld May 2000
Alternative deployment methods, Part 1: Beyond applets - JavaWorld May 2000
 
Easy Java/XML integration with JDOM, Part 1 - JavaWorld May 2000
Easy Java/XML integration with JDOM, Part 1 - JavaWorld May 2000
 
J2ME: The next major games platform? - JavaWorld March 2001
J2ME: The next major games platform? - JavaWorld March 2001
 
J2EE project dangers! - JavaWorld March 2001
J2EE project dangers! - JavaWorld March 2001
 
Cache in on faster, more reliable JSPs - JavaWorld May 2001
Cache in on faster, more reliable JSPs - JavaWorld May 2001
 
The Jxta solution to P2P
The Jxta solution to P2P
 
UI design with Tiles and Struts
UI design with Tiles and Struts
 
Use Web services to integrate Web applications with EISs
Use Web services to integrate Web applications with EISs
 
Ilog JRules 4.0: Working by the rules
Ilog JRules 4.0: Working by the rules
 
Rumble in the jungle: J2EE versus .Net, Part 2
Rumble in the jungle: J2EE versus .Net, Part 2
 
Jini's relevance emerges, Part 2
Jini's relevance emerges, Part 2
 
Develop state-of-the-art mobile games
Develop state-of-the-art mobile games
 
Introduction to JavaServer Faces
This article is meant to acquaint the reader with JavaServer Faces, commonly known as JSF. JSF technology simplifies building the user interface for web applications. It does this by providing a higher-level framework for working with your web app, repres
 
Practical Reflection: an excerpt from Hardcore Java
Practical Reflection: an excerpt from Hardcore Java In this chapter from Hardcore Java, "Practical Reflection," Robert Simmons Jr. writes: "Reflection is one of the least understood aspects of Java, but also one of the most powerful. Reflection is used i
 
Simple classes for JDBC
Simple classes for JDBC
 
Building Web Application With Ant and Deploying on Jboss 3.0
Building Web Application With Ant and Deploying on Jboss 3.0 Building Web Application With Ant and Deploying on Jboss 3.0 Previous Tutorial Index Next In this lesson I will show you how to build you web application and install on the Jboss 3.0
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.