All Downloads are FREE. Search and download functionalities are using the official Maven repository.

bin.xdrtools-rep.sh Maven / Gradle / Ivy

The newest version!
#! /bin/sh
#
# Copyright (C) 2011-2015 The XDocReport Team 
#
# All rights reserved.
#
# Permission is hereby granted, free  of charge, to any person obtaining
# a  copy  of this  software  and  associated  documentation files  (the
# "Software"), to  deal in  the Software without  restriction, including
# without limitation  the rights to  use, copy, modify,  merge, publish,
# distribute,  sublicense, and/or sell  copies of  the Software,  and to
# permit persons to whom the Software  is furnished to do so, subject to
# the following conditions:
#
# The  above  copyright  notice  and  this permission  notice  shall  be
# included in all copies or substantial portions of the Software.
#
# THE  SOFTWARE IS  PROVIDED  "AS  IS", WITHOUT  WARRANTY  OF ANY  KIND,
# EXPRESS OR  IMPLIED, INCLUDING  BUT NOT LIMITED  TO THE  WARRANTIES OF
# MERCHANTABILITY,    FITNESS    FOR    A   PARTICULAR    PURPOSE    AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE,  ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#

BASE_ADDRESS=$1
if [ -n "$BASE_ADDRESS" ]
then
   error
fi

USER=$2
if [ -n "$USER" ]
then
   error
fi

PASSWORD=$3
if [ -n "$PASSWORD" ]
then
   error
fi

SERVICE_TYPE=$4
if [ -n "$SERVICE_TYPE" ]
then
   error
fi

SERVICE_NAME=$5
if [ -n "$SERVICE_NAME" ]
then
   error
fi

OUT=$6
if [ -n "$OUT" ]
then
   error
fi

ERR=$7
if [ -n "$ERR" ]
then
   error
fi

RESOURCES=$8
if [ -n "$RESOURCES" ]
then
   error
fi

CHUNK=$9
if [ -n "$CHUNK" ]
then
   error
fi

TIMEOUT=$10
if [ -n "$TIMEOUT" ]
then
   error
fi

cd `dirname $0`
BASE_DIR=`pwd`

for i in `ls  $BASE_DIR/../lib/*.jar`
    do
        CLASSPATH=$CLASSPATH:$i
    done

java -classpath "$CLASSPATH" fr.opensagres.xdocreport.document.tools.remoting.resources.Main -baseAddress $BASE_ADDRESS -user $USER -password $PASSWORD -serviceType $SERVICE_TYPE -serviceName $SERVICE_NAME -out $OUT -err $ERR -resources $RESOURCES -chunk $CHUNK -timeout $TIMEOUT


error()
{
  echo  "Impossible to launch XDocReport-Repository Tools."
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy