jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dpfis...@apache.org
Subject svn commit: r1171637 - /jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/server/Server.java
Date Fri, 16 Sep 2011 15:48:43 GMT
Author: dpfister
Date: Fri Sep 16 15:48:42 2011
New Revision: 1171637

URL: http://svn.apache.org/viewvc?rev=1171637&view=rev
Log:
HTTP interface to microkernel
- add port command line parameter

Modified:
    jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/server/Server.java

Modified: jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/server/Server.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/server/Server.java?rev=1171637&r1=1171636&r2=1171637&view=diff
==============================================================================
--- jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/server/Server.java
(original)
+++ jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/server/Server.java
Fri Sep 16 15:48:42 2011
@@ -179,7 +179,7 @@ public class Server {
     
     public static void main(String[] args) throws Exception {
         if (args.length == 0) {
-            System.out.println(String.format("usage: %s microkernel-url", 
+            System.out.println(String.format("usage: %s microkernel-url [port]", 
                     Server.class.getName()));
             return;
         }
@@ -187,6 +187,9 @@ public class Server {
         MicroKernel mk = MicroKernelFactory.getInstance(args[0]);
         
         final Server server = new Server(mk);
+        if (args.length >= 2) {
+            server.setPort(Integer.parseInt(args[1]));
+        }
         server.start();
         
         Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() {



Mime
View raw message