You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Rodriguez, Pablo" <PR...@AR.SONY.COM> on 2003/09/26 19:02:38 UTC

metrics report

Hi !! Im new in maven.
I'm Exlicpse user... I have installed a pugin-for metrics,
net.sourceforge.metrics (Sauer Franc)
I can run an ant task (from Eclipse) to generate project metrics and export
this metrics into xml file.

Now I wont to add this ant task to maven so that every time a generate the
site, the metrics generate too.
This is the ant task

<?xml version="1.0" encoding="UTF-8"?>
<project name="metrics" default="build" basedir=".">
	<target name="init">
	   <tstamp/>
	</target>

	<target name="build" depends="init">
	  <eclipse.refreshLocal resource="Gastos" depth="infinite"/>
	  <metrics.enable projectName="Gastos"/>
	  <eclipse.build 
	  	ProjectName="Gastos" 
	  	BuildType="full" 
	  	errorOut="errors.xml" 
	  	errorFormat="xml" 
	  	failOnError="true"/>
	  <metrics.export 
	  	projectName="Gastos" 
	  	file="Gastos-metrics-${DSTAMP}-${TSTAMP}.xml"/>
	</target>

</project>
The questions are:

What I have to do to add this ant task to maven ?
How I add to the main menu a link to the metrics's xml file ?


Thanks a lot ....


Pablo Rodriguez

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org