kylin-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] zhaoyongjie closed pull request #125: KYLIN-3323 allow debugTomcat add more arguments
Date Mon, 02 Apr 2018 09:03:24 GMT
zhaoyongjie closed pull request #125: KYLIN-3323 allow debugTomcat add more arguments
URL: https://github.com/apache/kylin/pull/125
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/server/src/main/java/org/apache/kylin/rest/DebugTomcat.java b/server/src/main/java/org/apache/kylin/rest/DebugTomcat.java
index db285952f4..3e749eca08 100644
--- a/server/src/main/java/org/apache/kylin/rest/DebugTomcat.java
+++ b/server/src/main/java/org/apache/kylin/rest/DebugTomcat.java
@@ -105,7 +105,14 @@ public static void main(String[] args) throws Exception {
 
         int port = 7070;
         if (args.length >= 1) {
-            port = Integer.parseInt(args[0]);
+            for (String arg : args) {
+                String[] kwarg = arg.split("=");
+                if (kwarg[0].equals("port")) {
+                    port = Integer.parseInt(kwarg[1]);
+                    continue;
+                }
+                System.setProperty(kwarg[0], kwarg[1]);
+            }
         }
 
         File webBase = new File("../webapp/app");


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message