blob: d821715387178ea4b9b944d2e50e0896eda72cb9 [file] [log] [blame]
Mark Sleecb39f082007-04-10 02:30:30 +00001#!/bin/sh
Bryan Duxburydef30a62009-04-08 00:19:37 +00002
3#
4# Licensed to the Apache Software Foundation (ASF) under one
5# or more contributor license agreements. See the NOTICE file
6# distributed with this work for additional information
7# regarding copyright ownership. The ASF licenses this file
8# to you under the Apache License, Version 2.0 (the
9# "License"); you may not use this file except in compliance
10# with the License. You may obtain a copy of the License at
11#
12# http://www.apache.org/licenses/LICENSE-2.0
13#
14# Unless required by applicable law or agreed to in writing,
15# software distributed under the License is distributed on an
16# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17# KIND, either express or implied. See the License for the
18# specific language governing permissions and limitations
19# under the License.
20#
Todd Lipcon515c2382010-09-27 18:26:07 +000021THIS_DIR=$(dirname $0)
22LIB_DIR=$THIS_DIR/../../lib/java/
23IVY_DIR=$LIB_DIR/build/ivy/lib/
Bryan Duxburydef30a62009-04-08 00:19:37 +000024
Bryan Duxbury1b130832010-10-19 17:20:57 +000025# Optionally the following properties could be set for SSL instead
26# of configuring it in the code
27# -Djavax.net.ssl.trustStore=../../lib/java/test/.truststore
28# -Djavax.net.ssl.trustStorePassword=thrift
29# -Djavax.net.ssl.keyStore=../../lib/java/test/.keystore
30# -Djavax.net.ssl.keyStorePassword=thrift
31
Todd Lipcon515c2382010-09-27 18:26:07 +000032java -cp $IVY_DIR/*:$LIB_DIR/libthrift.jar:tutorial.jar JavaServer