You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2018/08/08 23:24:15 UTC

[GitHub] junichi11 closed pull request #7: Display the number of files scanned and converted

junichi11 closed pull request #7: Display the number of files scanned and converted
URL: https://github.com/apache/incubator-netbeans-tools/pull/7
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/convert/src/convert/AddFormLicense.java b/convert/src/convert/AddFormLicense.java
index bfe53ce..15b0047 100644
--- a/convert/src/convert/AddFormLicense.java
+++ b/convert/src/convert/AddFormLicense.java
@@ -39,7 +39,7 @@ public static void main(String[] args) throws IOException {
         }
         Pattern headerPattern1 = Pattern.compile(ASF_LICENSE_INPUT, Pattern.MULTILINE);
         Path root = Paths.get(args[0]);
-        int[] count = new int[1];
+        int[] count = new int[2];
         Files.find(root, Integer.MAX_VALUE, (p, attr) -> attr.isRegularFile())
              .filter(p -> p.getFileName().toString().endsWith(".form"))
              .forEach(p -> {
@@ -75,7 +75,10 @@ public static void main(String[] args) throws IOException {
                 } catch (IOException ex) {
                     throw new IllegalStateException(ex);
                 }
-             });
+                count[1]++;
+            });
+            System.err.println("converted: " + count[0]);
+            System.err.println("scanned: " + count[1]);
     }
 
 }


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists