openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1766729 - /openwebbeans/microwave/trunk/microwave-doc/src/main/java/org/apache/microwave/doc/JBake.java
Date Wed, 26 Oct 2016 19:56:53 GMT
Author: rmannibucau
Date: Wed Oct 26 19:56:53 2016
New Revision: 1766729

URL: http://svn.apache.org/viewvc?rev=1766729&view=rev
Log:
pdf is not that slow to prevent it for this site

Modified:
    openwebbeans/microwave/trunk/microwave-doc/src/main/java/org/apache/microwave/doc/JBake.java

Modified: openwebbeans/microwave/trunk/microwave-doc/src/main/java/org/apache/microwave/doc/JBake.java
URL: http://svn.apache.org/viewvc/openwebbeans/microwave/trunk/microwave-doc/src/main/java/org/apache/microwave/doc/JBake.java?rev=1766729&r1=1766728&r2=1766729&view=diff
==============================================================================
--- openwebbeans/microwave/trunk/microwave-doc/src/main/java/org/apache/microwave/doc/JBake.java
(original)
+++ openwebbeans/microwave/trunk/microwave-doc/src/main/java/org/apache/microwave/doc/JBake.java
Wed Oct 26 19:56:53 2016
@@ -28,6 +28,7 @@ public class JBake {
         // no-op
     }
 
+    // if you want to switch off PDF generation use as arguments: src/main/jbake target/site-tmp
true false
     public static void main(final String[] args) throws Exception {
         System.setProperty("java.util.concurrent.ForkJoinPool.common.parallelism", "64");
// try to have parallelStream better than default
 
@@ -35,7 +36,7 @@ public class JBake {
         final File pdfSource = new File(source, "content");
         final File destination = args == null || args.length < 2 ? new File("target/site-tmp")
: new File(args[1]);
         final boolean startHttp = args == null || args.length < 2 || Boolean.parseBoolean(args[2]);
// by default we dev
-        final boolean skipPdf = args == null || args.length < 3 || Boolean.parseBoolean(args[3]);
// by default...too slow sorry
+        final boolean skipPdf = args != null && args.length > 3 && !Boolean.parseBoolean(args[3]);
// by default...too slow sorry
 
         final Runnable build = () -> {
             System.out.println("Building Microwave website in " + destination);



Mime
View raw message