openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1777012 - in /openwebbeans/meecrowave/trunk/meecrowave-doc/src/main: java/org/apache/meecrowave/doc/generator/ jbake/content/meecrowave-maven/
Date Mon, 02 Jan 2017 20:30:45 GMT
Author: rmannibucau
Date: Mon Jan  2 20:30:45 2017
New Revision: 1777012

URL: http://svn.apache.org/viewvc?rev=1777012&view=rev
Log:
maven to blue - purple is not readable and fixing maven option table

Modified:
    openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/java/org/apache/meecrowave/doc/generator/ArquillianConfiguration.java
    openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/java/org/apache/meecrowave/doc/generator/CliConfiguration.java
    openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/java/org/apache/meecrowave/doc/generator/Configuration.java
    openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/java/org/apache/meecrowave/doc/generator/MavenConfiguration.java
    openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/jbake/content/meecrowave-maven/index.adoc

Modified: openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/java/org/apache/meecrowave/doc/generator/ArquillianConfiguration.java
URL: http://svn.apache.org/viewvc/openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/java/org/apache/meecrowave/doc/generator/ArquillianConfiguration.java?rev=1777012&r1=1777011&r2=1777012&view=diff
==============================================================================
--- openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/java/org/apache/meecrowave/doc/generator/ArquillianConfiguration.java
(original)
+++ openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/java/org/apache/meecrowave/doc/generator/ArquillianConfiguration.java
Mon Jan  2 20:30:45 2017
@@ -21,6 +21,7 @@ package org.apache.meecrowave.doc.genera
 import org.apache.meecrowave.arquillian.MeecrowaveConfiguration;
 
 import java.lang.reflect.Field;
+import java.util.Comparator;
 import java.util.stream.Stream;
 
 import static java.util.Optional.ofNullable;
@@ -36,7 +37,7 @@ public class ArquillianConfiguration ext
                 "  <container qualifier=\"tomee-embedded\" default=\"true\">\n" +
                 "    <configuration>\n" +
                 Stream.of(MeecrowaveConfiguration.class.getDeclaredFields())
-                        .sorted((o1, o2) -> o1.getName().compareTo(o2.getName()))
+                        .sorted(Comparator.comparing(Field::getName))
                         .map(opt -> "      <property name=\"" + opt.getName() + "\">"
+ valueFor(opt) + "</property>")
                         .collect(joining("\n")) +
                 "\n    </configuration>\n" +

Modified: openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/java/org/apache/meecrowave/doc/generator/CliConfiguration.java
URL: http://svn.apache.org/viewvc/openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/java/org/apache/meecrowave/doc/generator/CliConfiguration.java?rev=1777012&r1=1777011&r2=1777012&view=diff
==============================================================================
--- openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/java/org/apache/meecrowave/doc/generator/CliConfiguration.java
(original)
+++ openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/java/org/apache/meecrowave/doc/generator/CliConfiguration.java
Mon Jan  2 20:30:45 2017
@@ -21,6 +21,8 @@ package org.apache.meecrowave.doc.genera
 import org.apache.meecrowave.Meecrowave;
 import org.apache.meecrowave.runner.cli.CliOption;
 
+import java.lang.reflect.Field;
+import java.util.Comparator;
 import java.util.stream.Stream;
 
 import static java.util.stream.Collectors.joining;
@@ -31,7 +33,7 @@ public class CliConfiguration extends Ba
         return super.tableConfig() + "|===\n|Name|Description\n" +
                 Stream.of(Meecrowave.Builder.class.getDeclaredFields())
                         .filter(f -> f.isAnnotationPresent(CliOption.class))
-                        .sorted((o1, o2) -> o1.getName().compareTo(o2.getName()))
+                        .sorted(Comparator.comparing(Field::getName))
                         .map(f -> f.getAnnotation(CliOption.class))
                         .map(opt -> "|--" + opt.name() + "|" + opt.description())
                         .collect(joining("\n")) + "\n|===\n";

Modified: openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/java/org/apache/meecrowave/doc/generator/Configuration.java
URL: http://svn.apache.org/viewvc/openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/java/org/apache/meecrowave/doc/generator/Configuration.java?rev=1777012&r1=1777011&r2=1777012&view=diff
==============================================================================
--- openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/java/org/apache/meecrowave/doc/generator/Configuration.java
(original)
+++ openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/java/org/apache/meecrowave/doc/generator/Configuration.java
Mon Jan  2 20:30:45 2017
@@ -21,6 +21,8 @@ package org.apache.meecrowave.doc.genera
 import org.apache.meecrowave.Meecrowave;
 import org.apache.meecrowave.runner.cli.CliOption;
 
+import java.lang.reflect.Field;
+import java.util.Comparator;
 import java.util.stream.Stream;
 
 import static java.util.stream.Collectors.joining;
@@ -31,7 +33,7 @@ public class Configuration extends BaseG
         return super.tableConfig() + "|===\n|Name|Description\n" +
                 Stream.of(Meecrowave.Builder.class.getDeclaredFields())
                         .filter(f -> f.isAnnotationPresent(CliOption.class))
-                        .sorted((o1, o2) -> o1.getName().compareTo(o2.getName()))
+                        .sorted(Comparator.comparing(Field::getName))
                         .map(f -> "|" + f.getName() + "|" + f.getAnnotation(CliOption.class).description())
                         .collect(joining("\n")) + "\n|===\n";
     }

Modified: openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/java/org/apache/meecrowave/doc/generator/MavenConfiguration.java
URL: http://svn.apache.org/viewvc/openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/java/org/apache/meecrowave/doc/generator/MavenConfiguration.java?rev=1777012&r1=1777011&r2=1777012&view=diff
==============================================================================
--- openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/java/org/apache/meecrowave/doc/generator/MavenConfiguration.java
(original)
+++ openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/java/org/apache/meecrowave/doc/generator/MavenConfiguration.java
Mon Jan  2 20:30:45 2017
@@ -29,6 +29,7 @@ import java.io.FileInputStream;
 import java.io.InputStream;
 import java.util.ArrayList;
 import java.util.Collection;
+import java.util.Comparator;
 import java.util.stream.Stream;
 
 import static java.util.Optional.ofNullable;
@@ -40,8 +41,8 @@ public class MavenConfiguration extends
     protected String generate() {
         return super.tableConfig() + "|===\n|Name|Default|Property\n" +
                 loadConfiguration()
-                        .sorted((o1, o2) -> o1.name.compareTo(o2.name))
-                        .map(opt -> "|--" + opt.name + "|" + ofNullable(opt.defaultValue).orElse("-")
+ '|' + opt.property)
+                        .sorted(Comparator.comparing(o -> o.name))
+                        .map(opt -> "|" + opt.name + "|" + ofNullable(opt.defaultValue).orElse("-")
+ '|' + opt.property)
                         .collect(joining("\n")) + "\n|===\n";
     }
 

Modified: openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/jbake/content/meecrowave-maven/index.adoc
URL: http://svn.apache.org/viewvc/openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/jbake/content/meecrowave-maven/index.adoc?rev=1777012&r1=1777011&r2=1777012&view=diff
==============================================================================
--- openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/jbake/content/meecrowave-maven/index.adoc
(original)
+++ openwebbeans/meecrowave/trunk/meecrowave-doc/src/main/jbake/content/meecrowave-maven/index.adoc
Mon Jan  2 20:30:45 2017
@@ -4,7 +4,7 @@
 :jbake-status: published
 :jbake-meecrowavepdf:
 :jbake-meecrowavetitleicon: icon icon_puzzle_alt
-:jbake-meecrowavecolor: body-purple
+:jbake-meecrowavecolor: body-blue
 :icons: font
 
 Coordinates:



Mime
View raw message