forked from jitsi/jicofo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjicofo.bat
33 lines (27 loc) · 1.3 KB
/
jicofo.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
@echo off
if "%1"=="" goto usage
if "%1"=="/h" goto usage
if "%1"=="/?" goto usage
goto :begin
:usage
echo Usage:
echo %0 [OPTIONS], where options can be:
echo --host=HOST sets the hostname of the XMPP server (default: domain, if domain is set, localhost otherwise)
echo --domain=DOMAIN sets the XMPP domain
echo --port=PORT sets the port of the XMPP server (default: 5347)
echo --subdomain=SUBDOMAIN sets the sub-domain used to bind focus XMPP component (default: focus)
echo --secret=SECRET sets the shared secret used to authenticate focus component to the XMPP server
echo --user_domain=DOMAIN specifies the name of XMPP domain used by the focus user to login
echo --user_name=USERNAME specifies the username used by the focus XMPP user to login. (default: focus@user_domain)
echo --user_password=PASSWORD specifies the password used by focus XMPP user to login. If not provided then focus user will use anonymous authentication method.
echo.
exit /B 1
:begin
:: needed to overcome weird loop behavior in conjunction with variable expansion
SETLOCAL enabledelayedexpansion
set mainClass=org.jitsi.jicofo.Main
set cp=jicofo.jar
FOR %%F IN (lib/*.jar) DO (
SET cp=!cp!;lib/%%F%
)
java -Djava.library.path=lib/native/windows -Djava.util.logging.config.file=lib/logging.properties -cp %cp% %mainClass% %*