diff --git a/application/META-INF/MANIFEST.MF b/application/META-INF/MANIFEST.MF index c4a6f1f..2039bb9 100644 --- a/application/META-INF/MANIFEST.MF +++ b/application/META-INF/MANIFEST.MF @@ -2,7 +2,7 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: JSON node documentation generator Bundle-SymbolicName: de.philippkatz.knime.jsondocgen.application;singleton:=true -Bundle-Version: 1.14.1.qualifier +Bundle-Version: 1.14.2.qualifier Bundle-Vendor: Philipp Katz; Selenium Nodes Bundle-RequiredExecutionEnvironment: JavaSE-17 Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.6.0,5.0.0)", diff --git a/application/pom.xml b/application/pom.xml index d3a5fc4..d02960e 100644 --- a/application/pom.xml +++ b/application/pom.xml @@ -4,13 +4,13 @@ 4.0.0 de.philippkatz.knime.jsondocgen.application - 1.14.1-SNAPSHOT + 1.14.2-SNAPSHOT eclipse-plugin de.philippkatz.knime.jsondocgen de.philippkatz.knime.jsondocgen - 1.14.1-SNAPSHOT + 1.14.2-SNAPSHOT diff --git a/application/src/de/philippkatz/knime/jsondocgen/JsonNodeDocuGenerator.java b/application/src/de/philippkatz/knime/jsondocgen/JsonNodeDocuGenerator.java index 613b9aa..1473500 100644 --- a/application/src/de/philippkatz/knime/jsondocgen/JsonNodeDocuGenerator.java +++ b/application/src/de/philippkatz/knime/jsondocgen/JsonNodeDocuGenerator.java @@ -48,10 +48,9 @@ package de.philippkatz.knime.jsondocgen; import java.io.File; -import java.io.FileOutputStream; import java.lang.reflect.Method; import java.net.URL; -import java.nio.charset.StandardCharsets; +import java.nio.file.Files; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; @@ -67,7 +66,6 @@ import javax.xml.transform.TransformerException; -import org.apache.commons.io.IOUtils; import org.apache.log4j.Logger; import org.apache.log4j.xml.DOMConfigurator; import org.eclipse.equinox.app.IApplication; @@ -275,7 +273,7 @@ private void generate() throws Exception { String resultJson = rootCategory.toJson(); File resultFile = new File(m_directory, "nodeDocumentation.json"); LOGGER.info("Writing nodes to " + resultFile); - IOUtils.write(resultJson, new FileOutputStream(resultFile), StandardCharsets.UTF_8); + Files.writeString(resultFile.toPath(), resultJson); } @@ -307,7 +305,7 @@ private void generate() throws Exception { File portTypeResultFile = new File(m_directory, "portDocumentation.json"); LOGGER.info("Writing port types to " + portTypeResultFile); - IOUtils.write(Utils.toJson(rootElement), new FileOutputStream(portTypeResultFile), StandardCharsets.UTF_8); + Files.writeString(portTypeResultFile.toPath(), Utils.toJson(rootElement)); } @@ -320,16 +318,14 @@ private void generate() throws Exception { File splashIconsResultFile = new File(m_directory, "splashIcons.json"); LOGGER.info("Writing splash icons to " + splashIconsResultFile); - IOUtils.write(Utils.toJson(splashIcons), new FileOutputStream(splashIconsResultFile), - StandardCharsets.UTF_8); + Files.writeString(splashIconsResultFile.toPath(), Utils.toJson(splashIcons)); } if (!m_skipMigrationRules) { var migrationRuleDocs = MigrationRuleExtractor.extractMigrationRules(); var migrationsResultFile = new File(m_directory, "migrations.json"); LOGGER.info("Writing migrations to " + migrationsResultFile); - IOUtils.write(Utils.toJson(migrationRuleDocs), new FileOutputStream(migrationsResultFile), - StandardCharsets.UTF_8); + Files.writeString(migrationsResultFile.toPath(), Utils.toJson(migrationRuleDocs)); } } diff --git a/feature/feature.xml b/feature/feature.xml index 87493a2..83cc352 100644 --- a/feature/feature.xml +++ b/feature/feature.xml @@ -2,7 +2,7 @@ 4.0.0 de.philippkatz.knime.jsondocgen.feature - 1.14.1-SNAPSHOT + 1.14.2-SNAPSHOT eclipse-feature de.philippkatz.knime.jsondocgen de.philippkatz.knime.jsondocgen - 1.14.1-SNAPSHOT + 1.14.2-SNAPSHOT diff --git a/p2/pom.xml b/p2/pom.xml index 60fc40e..df7280b 100644 --- a/p2/pom.xml +++ b/p2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 de.philippkatz.knime.jsondocgen.p2 - 1.14.1-SNAPSHOT + 1.14.2-SNAPSHOT eclipse-repository de.philippkatz.knime.jsondocgen de.philippkatz.knime.jsondocgen - 1.14.1-SNAPSHOT + 1.14.2-SNAPSHOT diff --git a/pom.xml b/pom.xml index a69d30c..34ee2cb 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ 4.0.0 de.philippkatz.knime.jsondocgen de.philippkatz.knime.jsondocgen - 1.14.1-SNAPSHOT + 1.14.2-SNAPSHOT pom @@ -39,7 +39,7 @@ de.philippkatz.knime.jsondocgen de.philippkatz.knime.jsondocgen.targetplatform - 1.14.1-SNAPSHOT + 1.14.2-SNAPSHOT diff --git a/targetplatform/pom.xml b/targetplatform/pom.xml index edfc975..1bc8d10 100644 --- a/targetplatform/pom.xml +++ b/targetplatform/pom.xml @@ -9,7 +9,7 @@ de.philippkatz.knime.jsondocgen de.philippkatz.knime.jsondocgen - 1.14.1-SNAPSHOT + 1.14.2-SNAPSHOT diff --git a/tests/META-INF/MANIFEST.MF b/tests/META-INF/MANIFEST.MF index c036234..e2cf4a1 100644 --- a/tests/META-INF/MANIFEST.MF +++ b/tests/META-INF/MANIFEST.MF @@ -2,8 +2,8 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: JSON node documentation generator tests Bundle-SymbolicName: de.philippkatz.knime.jsondocgen.tests;singleton:=true -Bundle-Version: 1.14.1.qualifier +Bundle-Version: 1.14.2.qualifier Bundle-Vendor: Philipp Katz; Selenium Nodes Bundle-RequiredExecutionEnvironment: JavaSE-17 -Fragment-Host: de.philippkatz.knime.jsondocgen.application;bundle-version="1.14.1" +Fragment-Host: de.philippkatz.knime.jsondocgen.application;bundle-version="1.14.2" Require-Bundle: org.junit;bundle-version="4.12.0" diff --git a/tests/pom.xml b/tests/pom.xml index eb7be13..99b3379 100644 --- a/tests/pom.xml +++ b/tests/pom.xml @@ -4,13 +4,13 @@ 4.0.0 de.philippkatz.knime.jsondocgen.tests - 1.14.1-SNAPSHOT + 1.14.2-SNAPSHOT eclipse-test-plugin de.philippkatz.knime.jsondocgen de.philippkatz.knime.jsondocgen - 1.14.1-SNAPSHOT + 1.14.2-SNAPSHOT