Loading nb-configuration.xml 0 → 100644 +18 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8"?> <project-shared-configuration> <!-- This file contains additional configuration written by modules in the NetBeans IDE. The configuration is intended to be shared among all the users of project and therefore it is assumed to be part of version control checkout. Without this configuration present, some functionality in the IDE may be limited or fail altogether. --> <properties xmlns="http://www.netbeans.org/ns/maven-properties-data/1"> <!-- Properties that influence various parts of the IDE, especially code formatting and the like. You can copy and paste the single properties, into the pom.xml file and the IDE will pick them up. That way multiple projects can share the same settings (useful for formatting rules for example). Any value defined here will override the pom.xml file value but is only applicable to the current project. --> <netbeans.compile.on.save>all</netbeans.compile.on.save> </properties> </project-shared-configuration> nbactions-release-profile.xml +3 −3 Original line number Diff line number Diff line Loading @@ -13,7 +13,7 @@ <exec.vmArgs></exec.vmArgs> <exec.args>${exec.vmArgs} -classpath %classpath ${exec.mainClass} ${exec.appArgs}</exec.args> <exec.appArgs>4</exec.appArgs> <exec.mainClass>${packageClassName}</exec.mainClass> <exec.mainClass>com.mycompany.gitissueman.GitIssueMan</exec.mainClass> <exec.executable>java</exec.executable> </properties> </action> Loading @@ -30,7 +30,7 @@ <exec.vmArgs>-agentlib:jdwp=transport=dt_socket,server=n,address=${jpda.address}</exec.vmArgs> <exec.args>${exec.vmArgs} -classpath %classpath ${exec.mainClass} ${exec.appArgs}</exec.args> <exec.appArgs>4</exec.appArgs> <exec.mainClass>${packageClassName}</exec.mainClass> <exec.mainClass>com.mycompany.gitissueman.GitIssueMan</exec.mainClass> <exec.executable>java</exec.executable> <jpda.listen>true</jpda.listen> </properties> Loading @@ -47,7 +47,7 @@ <properties> <exec.vmArgs></exec.vmArgs> <exec.args>${exec.vmArgs} -classpath %classpath ${exec.mainClass} ${exec.appArgs}</exec.args> <exec.mainClass>${packageClassName}</exec.mainClass> <exec.mainClass>com.mycompany.gitissueman.GitIssueMan</exec.mainClass> <exec.executable>java</exec.executable> <exec.appArgs>4</exec.appArgs> </properties> Loading src/main/java/com/mycompany/gitissueman/GitIssueMan.java +15 −8 Original line number Diff line number Diff line Loading @@ -21,6 +21,8 @@ import com.google.gson.JsonSyntaxException; import java.io.IOException; import java.net.MalformedURLException; import java.time.LocalDate; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; import java.time.temporal.ChronoUnit; import java.util.ArrayList; import java.util.List; Loading Loading @@ -413,15 +415,11 @@ public class GitIssueMan { }else{ //System.out.println(issueObject.get("id").getAsString() + " Not processed due to missing information (due date or last update) " ); } total_issue ++; } } } } // Check if there are more pages to read String linkHeader = connection.getHeaderField("Link"); Loading Loading @@ -546,6 +544,14 @@ public class GitIssueMan { private static void publish_redmine_test(String apiUrl) throws IOException { LocalDateTime currentDateTime = LocalDateTime.now(); // Define a formatter to display the date and time in a specific format DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"); // Format the current date and time using the formatter String formattedDateTime = currentDateTime.format(formatter); /* String redmine = "h1. Dormient issues \\n \\n"; redmine = redmine + fetchIssuesRecursively_3(apiUrl); Loading @@ -561,6 +567,7 @@ public class GitIssueMan { redmine = redmine + fetchIssuesRecursively_2(apiUrl); redmine = redmine + "<br> <h1> Incomplete issues </h1> <br>"; redmine = redmine + fetchIssuesRecursively_1(apiUrl); redmine = redmine + "<br> <p> Last update: " + formattedDateTime + " </p> <br>"; redmine = redmine.replace("\"", "\\\""); try { // Set the API endpoint URL to update the Wiki page content Loading Loading
nb-configuration.xml 0 → 100644 +18 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8"?> <project-shared-configuration> <!-- This file contains additional configuration written by modules in the NetBeans IDE. The configuration is intended to be shared among all the users of project and therefore it is assumed to be part of version control checkout. Without this configuration present, some functionality in the IDE may be limited or fail altogether. --> <properties xmlns="http://www.netbeans.org/ns/maven-properties-data/1"> <!-- Properties that influence various parts of the IDE, especially code formatting and the like. You can copy and paste the single properties, into the pom.xml file and the IDE will pick them up. That way multiple projects can share the same settings (useful for formatting rules for example). Any value defined here will override the pom.xml file value but is only applicable to the current project. --> <netbeans.compile.on.save>all</netbeans.compile.on.save> </properties> </project-shared-configuration>
nbactions-release-profile.xml +3 −3 Original line number Diff line number Diff line Loading @@ -13,7 +13,7 @@ <exec.vmArgs></exec.vmArgs> <exec.args>${exec.vmArgs} -classpath %classpath ${exec.mainClass} ${exec.appArgs}</exec.args> <exec.appArgs>4</exec.appArgs> <exec.mainClass>${packageClassName}</exec.mainClass> <exec.mainClass>com.mycompany.gitissueman.GitIssueMan</exec.mainClass> <exec.executable>java</exec.executable> </properties> </action> Loading @@ -30,7 +30,7 @@ <exec.vmArgs>-agentlib:jdwp=transport=dt_socket,server=n,address=${jpda.address}</exec.vmArgs> <exec.args>${exec.vmArgs} -classpath %classpath ${exec.mainClass} ${exec.appArgs}</exec.args> <exec.appArgs>4</exec.appArgs> <exec.mainClass>${packageClassName}</exec.mainClass> <exec.mainClass>com.mycompany.gitissueman.GitIssueMan</exec.mainClass> <exec.executable>java</exec.executable> <jpda.listen>true</jpda.listen> </properties> Loading @@ -47,7 +47,7 @@ <properties> <exec.vmArgs></exec.vmArgs> <exec.args>${exec.vmArgs} -classpath %classpath ${exec.mainClass} ${exec.appArgs}</exec.args> <exec.mainClass>${packageClassName}</exec.mainClass> <exec.mainClass>com.mycompany.gitissueman.GitIssueMan</exec.mainClass> <exec.executable>java</exec.executable> <exec.appArgs>4</exec.appArgs> </properties> Loading
src/main/java/com/mycompany/gitissueman/GitIssueMan.java +15 −8 Original line number Diff line number Diff line Loading @@ -21,6 +21,8 @@ import com.google.gson.JsonSyntaxException; import java.io.IOException; import java.net.MalformedURLException; import java.time.LocalDate; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; import java.time.temporal.ChronoUnit; import java.util.ArrayList; import java.util.List; Loading Loading @@ -413,15 +415,11 @@ public class GitIssueMan { }else{ //System.out.println(issueObject.get("id").getAsString() + " Not processed due to missing information (due date or last update) " ); } total_issue ++; } } } } // Check if there are more pages to read String linkHeader = connection.getHeaderField("Link"); Loading Loading @@ -546,6 +544,14 @@ public class GitIssueMan { private static void publish_redmine_test(String apiUrl) throws IOException { LocalDateTime currentDateTime = LocalDateTime.now(); // Define a formatter to display the date and time in a specific format DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"); // Format the current date and time using the formatter String formattedDateTime = currentDateTime.format(formatter); /* String redmine = "h1. Dormient issues \\n \\n"; redmine = redmine + fetchIssuesRecursively_3(apiUrl); Loading @@ -561,6 +567,7 @@ public class GitIssueMan { redmine = redmine + fetchIssuesRecursively_2(apiUrl); redmine = redmine + "<br> <h1> Incomplete issues </h1> <br>"; redmine = redmine + fetchIssuesRecursively_1(apiUrl); redmine = redmine + "<br> <p> Last update: " + formattedDateTime + " </p> <br>"; redmine = redmine.replace("\"", "\\\""); try { // Set the API endpoint URL to update the Wiki page content Loading