added info messages
git-svn-id: https://svn.apache.org/repos/asf/maven/sandbox/trunk@1780662 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/dist-tools/dist-tool-plugin/src/main/java/org/apache/maven/dist/tools/AbstractDistCheckMojo.java b/dist-tools/dist-tool-plugin/src/main/java/org/apache/maven/dist/tools/AbstractDistCheckMojo.java
index 2ea38c1..6c5cc53 100644
--- a/dist-tools/dist-tool-plugin/src/main/java/org/apache/maven/dist/tools/AbstractDistCheckMojo.java
+++ b/dist-tools/dist-tool-plugin/src/main/java/org/apache/maven/dist/tools/AbstractDistCheckMojo.java
@@ -169,14 +169,19 @@
{
ConfigurationLineInfo aLine = null;
- line = line.trim();
+ String trim = line.trim();
- if ( "".equals( line ) || line.startsWith( "##" ) )
+ if ( "".equals( trim ) || trim.startsWith( "##" ) )
{
// empty line or comment: ignore
continue;
}
- else if ( line.startsWith( ">" ) )
+
+ getLog().info( line );
+
+ line = trim;
+
+ if ( line.startsWith( ">" ) )
{
// parameter
int index = line.indexOf( '=' );
@@ -224,10 +229,12 @@
{
// definition of a group, in a dist-area directory
currentGroup = new ConfigurationLineInfo( line.split( " " ) );
+
if ( currentGroup.getArtifactId() == null )
{
continue;
}
+
// check group's parent pom artifact
aLine = currentGroup;
}
@@ -259,6 +266,8 @@
checkArtifact( aLine, getVersion( aLine ) );
}
+
+ getLog().info( "" );
}
private String getVersion( ConfigurationLineInfo aLine )
@@ -297,12 +306,11 @@
if ( getLog().isDebugEnabled() )
{
- getLog().debug( "Checking information for artifact: " + aLine.getGroupId() + ":"
- + aLine.getArtifactId() + ":" + version );
+ getLog().debug( " available versions in repository " + repoBaseUrl );
// revert sort versions (not handling alpha and
// complex version schemes but more useful versions are displayed left side)
Collections.sort( metadata.getVersioning().getVersions(), Collections.reverseOrder() );
- getLog().debug( metadata.getVersioning().getVersions() + " version(s) detected " + repoBaseUrl );
+ getLog().debug( " " + metadata.getVersioning().getVersions() );
}
if ( aLine.getForcedVersion() != null )