pzampino commented on code in PR #1181:
URL: https://github.com/apache/knox/pull/1181#discussion_r3220988556


##########
gateway-shell-release/home/bin/knoxshell.sh:
##########
@@ -81,7 +81,7 @@ function main {
 
    checkJava
    buildAppJavaOpts
-   $JAVA "${APP_JAVA_OPTS[@]}" 
-Dlog4j.configurationFile=conf/knoxshell-log4j2.xml 
-javaagent:"$APP_BIN_DIR"/../lib/aspectjweaver.jar -cp "$APP_JAR":lib/* 
org.apache.knox.gateway.shell.Shell "$@" || exit 1
+   $JAVA "${APP_JAVA_OPTS[@]}" 
-Dlog4j.configurationFile=conf/knoxshell-log4j2.xml 
-javaagent:"$APP_BIN_DIR"/../lib/aspectjweaver.jar -cp "$APP_JAR":lib/* -cp 
"$APP_JAR":lib/* org.apache.knox.gateway.launcher.Launcher "$@" || exit 1

Review Comment:
   Why the change from shell.Shell to launcher.Launcher?



##########
gateway-shell/src/main/java/org/apache/knox/gateway/shell/commands/AbstractKnoxShellCommand.java:
##########
@@ -74,8 +94,70 @@ protected String 
getBindingVariableNameForResultingTable(List<String> args) {
   }
 
   protected CredentialCollector login() throws CredentialCollectionException {
-    KnoxLoginDialog dlg = new KnoxLoginDialog();
-    dlg.collect();
-    return dlg;
+    LineReader reader = LineReaderBuilder.builder()

Review Comment:
   This appears to be a re-implementation of the credential collector logic in 
the name of the JLine upgrade? Is it necessary for the dependency upgrade?



-- 
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]

Reply via email to