mbien commented on PR #5939:
URL: https://github.com/apache/netbeans/pull/5939#issuecomment-1545628713

   quickly wrote a util which generates a maven dependency section:
   ```java
       public static void main(String[] args) throws IOException {
           Path path = 
Path.of("/home/mbien/NetBeansProjects/netbeans/java/maven.embedder/external/binariesembedded-list");
           try(Stream<String> lines = Files.lines(path)) {
               // 
321C614F85F1DEA6BB08C1817C60D53B7F3552FD;org.fusesource.jansi:jansi:2.4.0
               lines.filter(l -> !l.startsWith("#") && l.contains(";"))
                    .map(l -> l.substring(l.indexOf(';')+1))
                    .forEach(l -> {
                   String[] comp = l.split("\\:");
                   System.out.println(
                                   """
                                           <dependency>
                                               <groupId>%s</groupId>
                                               <artifactId>%s</artifactId>
                                               <version>%s</version>
                                           </dependency>
                                   """.formatted(comp[0], comp[1], comp[2]));
               });
               
           }
       }
   ```
   then pasted it into a project and hit clean build. This found another typo 
which I fixed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

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

Reply via email to