maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1488590 - /maven/sandbox/trunk/dist-tools/dist-tool-plugin/src/main/java/org/apache/maven/dist/tools/DistCheckSourceReleaseMojo.java
Date Sat, 01 Jun 2013 20:30:14 GMT
Author: hboutemy
Date: Sat Jun  1 20:30:14 2013
New Revision: 1488590

URL: http://svn.apache.org/r1488590
Log:
added icons

Modified:
    maven/sandbox/trunk/dist-tools/dist-tool-plugin/src/main/java/org/apache/maven/dist/tools/DistCheckSourceReleaseMojo.java

Modified: maven/sandbox/trunk/dist-tools/dist-tool-plugin/src/main/java/org/apache/maven/dist/tools/DistCheckSourceReleaseMojo.java
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/dist-tools/dist-tool-plugin/src/main/java/org/apache/maven/dist/tools/DistCheckSourceReleaseMojo.java?rev=1488590&r1=1488589&r2=1488590&view=diff
==============================================================================
--- maven/sandbox/trunk/dist-tools/dist-tool-plugin/src/main/java/org/apache/maven/dist/tools/DistCheckSourceReleaseMojo.java
(original)
+++ maven/sandbox/trunk/dist-tools/dist-tool-plugin/src/main/java/org/apache/maven/dist/tools/DistCheckSourceReleaseMojo.java
Sat Jun  1 20:30:14 2013
@@ -116,7 +116,21 @@ public class DistCheckSourceReleaseMojo 
 
         sink.body();
         sink.section1();
-        sink.rawText( "Missing Source Release (less you have better the result)" );
+        sink.paragraph();
+        sink.text( "Check Source Release (= artifactId + version + '-source-release.zip[.asc|.md5]')
availability in:" );
+        sink.paragraph_();
+        sink.list();
+        sink.listItem();
+        sink.link( repoBaseUrl );
+        sink.text( "central" );
+        sink.link_();
+        sink.listItem_();
+        sink.listItem();
+        sink.link( "https://dist.apache.org/repos/dist/release/maven/" );
+        sink.text( "Apache distribution area" );
+        sink.link_();
+        sink.listItem_();
+        sink.list_();
         sink.section1_();
         sink.table();
         sink.tableRow();
@@ -130,10 +144,10 @@ public class DistCheckSourceReleaseMojo 
         sink.rawText( "LATEST" );
         sink.tableHeaderCell_();
         sink.tableHeaderCell();
-        sink.rawText( "Central " + repoBaseUrl );
+        sink.rawText( "central" );
         sink.tableHeaderCell_();
         sink.tableHeaderCell();
-        sink.rawText( "Dist" );
+        sink.rawText( "dist" );
         sink.tableHeaderCell_();
         sink.tableRow_();
 
@@ -149,27 +163,31 @@ public class DistCheckSourceReleaseMojo 
             sink.tableCell();
             sink.rawText( csr.getVersion() );
             sink.tableCell_();
+
             sink.tableCell();
-            sink.bold();
-            sink.lineBreak();
+            if ( csr.central.isEmpty() )
+            {
+                iconSuccess( sink );
+            }
             for ( String missing : csr.central )
             {
+                iconError( sink );
                 sink.rawText( missing );
                 sink.lineBreak();
             }
-
-            sink.bold_();
             sink.tableCell_();
+
             sink.tableCell();
-            sink.bold();
-            sink.lineBreak();
+            if ( csr.dist.isEmpty() )
+            {
+                iconSuccess( sink );
+            }
             for ( String missing : csr.dist )
             {
+                iconError( sink );
                 sink.rawText( missing );
                 sink.lineBreak();
             }
-
-            sink.bold_();
             sink.tableCell_();
 
             sink.tableRow_();
@@ -188,9 +206,9 @@ public class DistCheckSourceReleaseMojo 
         List<String> retrievedFile = new LinkedList<>();
         // http://maven.apache.org/developers/release/maven-project-release-procedure.html#Copy_the_source_release_to_the_Apache_Distribution_Area
         // build source artifact name
-        expectedFile.add( r.getArtifactId() + "-" + version + "-" + "source-release.zip"
);
-        expectedFile.add( r.getArtifactId() + "-" + version + "-" + "source-release.zip.asc"
);
-        expectedFile.add( r.getArtifactId() + "-" + version + "-" + "source-release.zip.md5"
);
+        expectedFile.add( r.getArtifactId() + "-" + version + "-source-release.zip" );
+        expectedFile.add( r.getArtifactId() + "-" + version + "-source-release.zip.asc" );
+        expectedFile.add( r.getArtifactId() + "-" + version + "-source-release.zip.md5" );
 
 
 



Mime
View raw message