Author: vmassol Date: Fri Jun 23 05:19:28 2006 New Revision: 416695 URL: http://svn.apache.org/viewvc?rev=416695&view=rev Log: * Added debugging information * Removed old todo which was fixed some time back
Modified: maven/plugins/trunk/maven-clover-plugin/src/main/java/org/apache/maven/plugin/clover/CloverInstrumentInternalMojo.java Modified: maven/plugins/trunk/maven-clover-plugin/src/main/java/org/apache/maven/plugin/clover/CloverInstrumentInternalMojo.java URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-clover-plugin/src/main/java/org/apache/maven/plugin/clover/CloverInstrumentInternalMojo.java?rev=416695&r1=416694&r2=416695&view=diff ============================================================================== --- maven/plugins/trunk/maven-clover-plugin/src/main/java/org/apache/maven/plugin/clover/CloverInstrumentInternalMojo.java (original) +++ maven/plugins/trunk/maven-clover-plugin/src/main/java/org/apache/maven/plugin/clover/CloverInstrumentInternalMojo.java Fri Jun 23 05:19:28 2006 @@ -400,7 +400,6 @@ /** * @return the CLI args to be passed to CloverInstr - * @todo handle multiple source roots. At the moment only the first source root is instrumented */ private String[] createCliArgs(Set filesToInstrument) throws MojoExecutionException { @@ -445,7 +444,16 @@ parameters.add( file.getPath() ); } - getLog().debug( "Instrumenting using parameters [" + parameters.toString() + "]"); + // Log parameters + if ( getLog().isDebugEnabled() ) + { + getLog().debug("Parameter list being passed to Clover CLI:"); + for ( Iterator it = parameters.iterator(); it.hasNext(); ) + { + String param = (String) it.next(); + getLog().debug(" parameter = [" + param + "]"); + } + } return (String[]) parameters.toArray(new String[0]); }