My favorites | Sign in
Project Home Downloads Issues Source
Repository:
Checkout   Browse   Changes   Clones    
 
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
34
35
36
37
38
#!/bin/bash

# This script will start the Wave in a Box wave client.
#

# Function to extract a property from a file
extract_property () {
if [ ! -e $1 ]; then
echo "Property file '$1' does not exist!"
exit 1;
fi
echo `sed "s/[\\t ]*=[\\t ]*/=/g" $1 | grep ^$2= | cut -f2 -d=`
}

# Make sure the config file exists.
if [ ! -e server.config ]; then
echo "You need to copy server.config.example to server.config and edit it."
exit 1
fi

# Domain name of the wave server
WAVE_SERVER_DOMAIN_NAME=$(extract_property server.config wave_server_domain)

# Public address of server http frontend
HTTP_SERVER_PUBLIC_ADDRESS=$(extract_property server.config http_frontend_public_address)

# The version of Wave in a Box, extracted from the build.properties file
WAVEINABOX_VERSION=$(extract_property build.properties waveinabox.version)

. process-script-args.sh

if [[ $ARGC != 1 ]]; then
echo "usage: ${0} <username EXCLUDING DOMAIN>"
else
USER_NAME=${ARGV[0]}@$WAVE_SERVER_DOMAIN_NAME
echo "running client as user: ${USER_NAME}"
exec java $DEBUG_FLAGS -jar dist/waveinabox-client-console-$WAVEINABOX_VERSION.jar $USER_NAME $HTTP_SERVER_PUBLIC_ADDRESS
fi

Change log

72122ec91be0 by Tad Glines <tad.glines> on Nov 29, 2010   Diff
Replace commandline configuration with
parameter file configuration.
Go to: 
Sign in to write a code review

Older revisions

8cc0bf7f7103 by so...@google.com on Nov 4, 2010   Diff
Made the client take server:port
command line argument

Fixes  Issue 142 
26054f68d9f2 by Matt Richards <mrichards> on Oct 14, 2010   Diff
More FedOne -> Wave in a Box renames.
81c5d6f00a39 by Matt Richards <mrichards> on Oct 14, 2010   Diff
Renames FedOne -> Wave in a Box in
build files, jar names, scripts, etc.
All revisions of this file

File info

Size: 1173 bytes, 38 lines
Powered by Google Project Hosting