Github user alopresto commented on a diff in the pull request:
https://github.com/apache/nifi/pull/1502#discussion_r100985555
--- Diff:
nifi-toolkit/nifi-toolkit-tls/src/main/java/org/apache/nifi/toolkit/tls/standalone/TlsToolkitStandaloneCommandLine.java
---
@@ -59,7 +60,18 @@
public static final String NIFI_DN_PREFIX_ARG = "nifiDnPrefix";
public static final String NIFI_DN_SUFFIX_ARG = "nifiDnSuffix";
- public static final String DEFAULT_OUTPUT_DIRECTORY = "../" +
Paths.get(".").toAbsolutePath().normalize().getFileName().toString();
+ public static final String DEFAULT_OUTPUT_DIRECTORY =
calculateDefaultOutputDirectory(Paths.get("."));
+
+ protected static String calculateDefaultOutputDirectory(Path
currentPath) {
+ Path currentAbsolutePath = currentPath.toAbsolutePath();
+ Path currentNormalizedPath = currentAbsolutePath.normalize();
--- End diff --
I moved this inside the `else` branch as it is only used in that case.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---