You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2016/06/15 12:30:01 UTC

svn commit: r1748572 [2/23] - in /directory/apacheds/branches/apacheds-value: ./ benchmarks/installers-maven-plugin/ benchmarks/installers-maven-plugin/.settings/ benchmarks/installers-maven-plugin/target/ benchmarks/installers-maven-plugin/target/clas...

Added: directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/NOTICE
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/NOTICE?rev=1748572&view=auto
==============================================================================
--- directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/NOTICE (added)
+++ directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/NOTICE Wed Jun 15 12:29:57 2016
@@ -0,0 +1,6 @@
+
+Apache Directory Server
+Copyright 2003-2015 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).

Added: directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/ReflectionProperties.class
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/ReflectionProperties.class?rev=1748572&view=auto
==============================================================================
Binary file - no diff available.

Propchange: directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/ReflectionProperties.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/Target.class
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/Target.class?rev=1748572&view=auto
==============================================================================
Binary file - no diff available.

Propchange: directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/Target.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/apacheds
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/apacheds?rev=1748572&view=auto
==============================================================================
--- directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/apacheds (added)
+++ directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/apacheds Wed Jun 15 12:29:57 2016
@@ -0,0 +1,590 @@
+#! /bin/sh
+#
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+#
+
+# Shell script to start/stop ApacheDS
+# If you want to change ApacheDS service settings please modify the wrapper.conf 
+# file for the instance you wish to change.
+# chkconfig: 2345 91 35
+# description: This script starts and stops ApacheDS
+#
+
+INSTANCE="$2"
+
+INSTALLATION_DIRECTORY="@installation.directory@"
+INSTANCES_DIRECTORY="@instances.directory@"
+INSTANCE_DIRECTORY="$INSTANCES_DIRECTORY/$INSTANCE"
+
+# Application
+APP_NAME="apacheds"
+APP_LONG_NAME="ApacheDS - $INSTANCE"
+
+# Wrapper
+WRAPPER_CMD="$INSTALLATION_DIRECTORY/bin/wrapper"
+WRAPPER_CONF="$INSTANCE_DIRECTORY/conf/wrapper-instance.conf"
+
+# Priority at which to run the wrapper.  See "man nice" for valid priorities.
+#  nice is only used if a priority is specified.
+PRIORITY=
+
+# Location of the pid file.
+PIDDIR=$INSTANCE_DIRECTORY/run
+
+# If uncommented, causes the Wrapper to be shutdown using an anchor file.
+#  When launched with the 'start' command, it will also ignore all INT and
+#  TERM signals.
+#IGNORE_SIGNALS=true
+
+# If specified, the Wrapper will be run as the specified user and group.
+# IMPORTANT - Make sure that the user has the required privileges to write
+#  the PID file and wrapper.log files.  Failure to be able to write the log
+#  file will cause the Wrapper to exit without any way to write out an error
+#  message.
+# NOTE - This will set the user which is used to run the Wrapper as well as
+#  the JVM and is not useful in situations where a privileged resource or
+#  port needs to be allocated prior to the user being changed.
+RUN_AS_USER="@user@"
+RUN_AS_GROUP="@group@"
+
+# Do not modify anything beyond this point
+#-----------------------------------------------------------------------------
+
+# Get the fully qualified path to the script
+case $0 in 
+    /*) 
+        SCRIPT="$0" 
+        ;; 
+   ./*) 
+        SCRIPT="`pwd`/`echo $0 | sed -e 's/^[ ]*\.\///'`" 
+        ;; 
+     *) 
+        SCRIPT="`pwd`/`echo $0 | sed -e 's/^[ ]*//'`" 
+        ;; 
+esac 
+
+# Resolve the true real path without any sym links.
+CHANGED=true
+while [ "X$CHANGED" != "X" ]
+do
+    # Change spaces to ":" so the tokens can be parsed.
+    SAFESCRIPT=`echo $SCRIPT | sed -e 's; ;:;g'`
+    # Get the real path to this script, resolving any symbolic links
+    TOKENS=`echo $SAFESCRIPT | sed -e 's;/; ;g'`
+    REALPATH=
+    for C in $TOKENS; do
+        # Change any ":" in the token back to a space.
+        C=`echo $C | sed -e 's;:; ;g'`
+        REALPATH="$REALPATH/$C"
+        # If REALPATH is a sym link, resolve it.  Loop for nested links.
+        while [ -h "$REALPATH" ] ; do
+            LS="`ls -ld "$REALPATH"`"
+            LINK="`expr "$LS" : '.*-> \(.*\)$'`"
+            if expr "$LINK" : '/.*' > /dev/null; then
+                # LINK is absolute.
+                REALPATH="$LINK"
+            else
+                # LINK is relative.
+                REALPATH="`dirname "$REALPATH"`""/$LINK"
+            fi
+        done
+    done
+
+    if [ "$REALPATH" = "$SCRIPT" ]
+    then
+        CHANGED=""
+    else
+        SCRIPT="$REALPATH"
+    fi
+done
+
+# Change the current directory to the location of the script
+cd "`dirname "$REALPATH"`"
+REALDIR=`pwd`
+
+# If the PIDDIR is relative, set its value relative to the full REALPATH to avoid problems if
+#  the working directory is later changed.
+FIRST_CHAR=`echo $PIDDIR | cut -c1,1`
+if [ "$FIRST_CHAR" != "/" ]
+then
+    PIDDIR=$REALDIR/$PIDDIR
+fi
+# Same test for WRAPPER_CMD
+FIRST_CHAR=`echo $WRAPPER_CMD | cut -c1,1`
+if [ "$FIRST_CHAR" != "/" ]
+then
+    WRAPPER_CMD=$REALDIR/$WRAPPER_CMD
+fi
+# Same test for WRAPPER_CONF
+FIRST_CHAR=`echo $WRAPPER_CONF | cut -c1,1`
+if [ "$FIRST_CHAR" != "/" ]
+then
+    WRAPPER_CONF=$REALDIR/$WRAPPER_CONF
+fi
+
+# Process ID
+ANCHORFILE="$PIDDIR/$INSTANCE.anchor"
+PIDFILE="$PIDDIR/$APP_NAME-$INSTANCE.pid"
+LOCKDIR="/var/lock/subsys"
+LOCKFILE="$LOCKDIR/$INSTANCE"
+pid=""
+
+# Resolve the location of the 'ps' command
+PSEXE="/usr/bin/ps"
+if [ ! -x "$PSEXE" ]
+then
+    PSEXE="/bin/ps"
+    if [ ! -x "$PSEXE" ]
+    then
+        echo "Unable to locate 'ps'."
+        echo "Please report this message along with the location of the command on your system."
+        exit 1
+    fi
+fi
+
+# Resolve the os
+DIST_OS=`uname -s | tr [:upper:] [:lower:] | tr -d [:blank:]`
+case "$DIST_OS" in
+    'sunos')
+        DIST_OS="solaris"
+        ;;
+    'hp-ux' | 'hp-ux64')
+        DIST_OS="hpux"
+        ;;
+    'darwin')
+        DIST_OS="macosx"
+        ;;
+    'unix_sv')
+        DIST_OS="unixware"
+        ;;
+esac
+
+# Resolve the architecture
+DIST_ARCH=`uname -p | tr [:upper:] [:lower:] | tr -d [:blank:]`
+if [ "$DIST_ARCH" = "unknown" ]
+then
+    DIST_ARCH=`uname -m | tr [:upper:] [:lower:] | tr -d [:blank:]`
+fi
+case "$DIST_ARCH" in
+    'amd64' | 'athlon' | 'ia32' | 'ia64' | 'i386' | 'i486' | 'i586' | 'i686' | 'x86_64')
+        DIST_ARCH="x86"
+        ;;
+    'ip27')
+        DIST_ARCH="mips"
+        ;;
+    'power' | 'powerpc' | 'power_pc' | 'ppc64')
+        DIST_ARCH="ppc"
+        ;;
+    'pa_risc' | 'pa-risc')
+        DIST_ARCH="parisc"
+        ;;
+    'sun4u' | 'sparcv9')
+        DIST_ARCH="sparc"
+        ;;
+    '9000/800')
+        DIST_ARCH="parisc"
+        ;;
+esac
+
+outputFile() {
+    if [ -f "$1" ]
+    then
+        echo "  $1 (Found but not executable.)";
+    else
+        echo "  $1"
+    fi
+}
+
+# Build the nice clause
+if [ "X$PRIORITY" = "X" ]
+then
+    CMDNICE=""
+else
+    CMDNICE="nice -$PRIORITY"
+fi
+
+# Build the anchor file clause.
+if [ "X$IGNORE_SIGNALS" = "X" ]
+then
+   ANCHORPROP=
+   IGNOREPROP=
+else
+   ANCHORPROP=wrapper.anchorfile=\"$ANCHORFILE\"
+   IGNOREPROP=wrapper.ignore_signals=TRUE
+fi
+
+# Build the lock file clause.  Only create a lock file if the lock directory exists on this platform.
+LOCKPROP=
+if [ -d $LOCKDIR ]
+then
+    if [ -w $LOCKDIR ]
+    then
+        LOCKPROP=wrapper.lockfile=\"$LOCKFILE\"
+    fi
+fi
+
+checkUser() {
+    # $1 touchLock flag
+    # $2 command
+    # $3 instance
+
+    # Check the configured user.  If necessary rerun this script as the desired user.
+    if [ "X$RUN_AS_USER" != "X" ]
+    then
+        # Resolve the location of the 'id' command
+        IDEXE="/usr/xpg4/bin/id"
+        if [ ! -x "$IDEXE" ]
+        then
+            IDEXE="/usr/bin/id"
+            if [ ! -x "$IDEXE" ]
+            then
+                IDEXE="/bin/id"
+                if [ ! -x "$IDEXE" ]
+                then
+                    echo "Unable to locate 'id'."
+                    echo "Please report this message along with the location of the command on your system."
+                    exit 1
+                fi
+            fi
+        fi
+
+        if [ "`$IDEXE -u -n`" = "$RUN_AS_USER" ]
+        then
+            # Already running as the configured user.  Avoid password prompts by not calling su.
+            RUN_AS_USER=""
+        fi
+    fi
+    if [ "X$RUN_AS_USER" != "X" ]
+    then
+        # If LOCKPROP and $RUN_AS_USER are defined then the new user will most likely not be
+        # able to create the lock file.  The Wrapper will be able to update this file once it
+        # is created but will not be able to delete it on shutdown.  If $2 is defined then
+        # the lock file should be created for the current command
+        if [ "X$LOCKPROP" != "X" ]
+        then
+            if [ "X$1" != "X" ]
+            then
+                # Resolve the primary group 
+                RUN_AS_GROUP=`groups $RUN_AS_GROUP| awk '{print $3}' | tail -1`
+                if [ "X$RUN_AS_GROUP" = "X" ]
+                then
+                    RUN_AS_GROUP=$RUN_AS_USER
+                fi
+                touch $LOCKFILE
+                chown $RUN_AS_USER:$RUN_AS_GROUP $LOCKFILE
+            fi
+        fi
+
+        # Still want to change users, recurse.  This means that the user will only be
+        #  prompted for a password once. Variables shifted by 1
+        su -m $RUN_AS_USER -c "\"$REALPATH\" $2 $3"
+        ret=$?
+
+        # Now that we are the original user again, we may need to clean up the lock file.
+        if [ "X$LOCKPROP" != "X" ]
+        then
+            getpid
+            if [ "X$pid" = "X" ]
+            then
+                # Wrapper is not running so make sure the lock file is deleted.
+                if [ -f "$LOCKFILE" ]
+                then
+                    rm "$LOCKFILE"
+                fi
+            fi
+        fi
+
+        exit $ret
+    fi
+}
+
+getpid() {
+    if [ -f "$PIDFILE" ]
+    then
+        if [ -r "$PIDFILE" ]
+        then
+            pid=`cat "$PIDFILE"`
+            if [ "X$pid" != "X" ]
+            then
+                # It is possible that 'a' process with the pid exists but that it is not the
+                #  correct process.  This can happen in a number of cases, but the most
+                #  common is during system startup after an unclean shutdown.
+                # The ps statement below looks for the specific wrapper command running as
+                #  the pid.  If it is not found then the pid file is considered to be stale.
+                pidtest=`$PSEXE -p $pid -o args | grep "$WRAPPER_CMD" | tail -1`
+                if [ "X$pidtest" = "X" ]
+                then
+                    # This is a stale pid file.
+                    rm -f "$PIDFILE"
+                    echo "Removed stale pid file: $PIDFILE"
+                    pid=""
+                fi
+            fi
+        else
+            echo "Cannot read $PIDFILE."
+            exit 1
+        fi
+    fi
+}
+
+testpid() {
+    pid=`$PSEXE -p $pid | grep $pid | grep -v grep | awk '{print $1}' | tail -1`
+    if [ "X$pid" = "X" ]
+    then
+        # Process is gone so remove the pid file.
+        rm -f "$PIDFILE"
+        pid=""
+    fi
+}
+
+usage() {
+    # Command parameter
+    if [ "x$1" = "x" ]; 
+    then
+        echo "Please enter a command..."
+    fi
+
+    # Instance parameter
+    if [ "x$2" = "x" ]; 
+    then
+        echo "Please enter an instance name..."
+    fi
+    
+    echo "Usage: $0 <command> <instance name>"
+    echo "  Available Commands: "
+    echo "      console     - Run in interactive mode with log output to the console."
+    echo "                    Press CTRL-C to stop."
+    echo "      start       - Run the instance in the background"
+    echo "      stop        - Stop the running instance"
+    echo "      restart     - Restart the instance if it is already running,"
+    echo "                    or start if it wasn't already running"
+    echo "      status      - Display the status of the instance (running or stopped)"
+    echo "      dump        - Request a JVM dump of the running process"
+}
+
+console() {
+    echo "Running $APP_LONG_NAME..."
+    getpid
+    if [ "X$pid" = "X" ]
+    then
+        # The string passed to eval must handles spaces in paths correctly.
+        COMMAND_LINE="$CMDNICE \"$WRAPPER_CMD\" \"$WRAPPER_CONF\" set.INSTANCE_DIRECTORY=\"$INSTANCE_DIRECTORY\" set.INSTANCE=\"$INSTANCE\" wrapper.syslog.ident=\"$APP_NAME\" wrapper.pidfile=\"$PIDFILE\" $ANCHORPROP $LOCKPROP"
+        eval $COMMAND_LINE
+    else
+        echo "$APP_LONG_NAME is already running."
+        exit 1
+    fi
+}
+ 
+start() {
+    echo "Starting $APP_LONG_NAME..."
+    getpid
+     if [ "X$pid" = "X" ]
+     then
+         # The string passed to eval must handles spaces in paths correctly.
+         COMMAND_LINE="$CMDNICE \"$WRAPPER_CMD\" \"$WRAPPER_CONF\" set.INSTANCE_DIRECTORY=\"$INSTANCE_DIRECTORY\" set.INSTANCE=\"$INSTANCE\" wrapper.syslog.ident=\"$APP_NAME\" wrapper.pidfile=\"$PIDFILE\" wrapper.daemonize=TRUE $ANCHORPROP $IGNOREPROP $LOCKPROP"
+         eval $COMMAND_LINE
+     else
+         echo "$APP_LONG_NAME is already running."
+         exit 1
+     fi
+}
+ 
+repair() {
+    echo "Repairing $APP_LONG_NAME..."
+    getpid
+     if [ "X$pid" = "X" ]
+     then
+         # The string passed to eval must handles spaces in paths correctly.
+         COMMAND_LINE="$CMDNICE \"$WRAPPER_CMD\" wrapper.java.additional.1=repair \"$WRAPPER_CONF\" set.INSTANCE_DIRECTORY=\"$INSTANCE_DIRECTORY\" set.INSTANCE=\"$INSTANCE\" wrapper.syslog.ident=\"$APP_NAME\" wrapper.pidfile=\"$PIDFILE\" wrapper.daemonize=TRUE $ANCHORPROP $IGNOREPROP $LOCKPROP"
+         eval $COMMAND_LINE
+     else
+         echo "$APP_LONG_NAME is already running."
+         exit 1
+     fi
+}
+ 
+stopit() {
+    echo "Stopping $APP_LONG_NAME..."
+    getpid
+    if [ "X$pid" = "X" ]
+    then
+        echo "$APP_LONG_NAME was not running."
+    else
+        if [ "X$IGNORE_SIGNALS" = "X" ]
+        then
+            # Running so try to stop it.
+            kill $pid
+            if [ $? -ne 0 ]
+            then
+                # An explanation for the failure should have been given
+                echo "Unable to stop $APP_LONG_NAME."
+                exit 1
+            fi
+        else
+            rm -f "$ANCHORFILE"
+            if [ -f "$ANCHORFILE" ]
+            then
+                # An explanation for the failure should have been given
+                echo "Unable to stop $APP_LONG_NAME."
+                exit 1
+            fi
+        fi
+
+        # We can not predict how long it will take for the wrapper to
+        #  actually stop as it depends on settings in apacheds.conf.
+        #  Loop until it does.
+        savepid=$pid
+        CNT=0
+        TOTCNT=0
+        while [ "X$pid" != "X" ]
+        do
+            # Show a waiting message every 5 seconds.
+            if [ "$CNT" -lt "5" ]
+            then
+                CNT=`expr $CNT + 1`
+            else
+                echo "Waiting for $APP_LONG_NAME to exit..."
+                CNT=0
+            fi
+            TOTCNT=`expr $TOTCNT + 1`
+
+            sleep 1
+
+            testpid
+        done
+
+        pid=$savepid
+        testpid
+        if [ "X$pid" != "X" ]
+        then
+            echo "Failed to stop $APP_LONG_NAME."
+            exit 1
+        else
+            echo "Stopped $APP_LONG_NAME."
+        fi
+    fi
+}
+
+status() {
+    getpid
+    if [ "X$pid" = "X" ]
+    then
+        echo "$APP_LONG_NAME is not running."
+        exit 1
+    else
+        echo "$APP_LONG_NAME is running ($pid)."
+        exit 0
+    fi
+}
+
+dump() {
+    echo "Dumping $APP_LONG_NAME..."
+    getpid
+    if [ "X$pid" = "X" ]
+    then
+        echo "$APP_LONG_NAME was not running."
+
+    else
+        kill -3 $pid
+
+        if [ $? -ne 0 ]
+        then
+            echo "Failed to dump $APP_LONG_NAME."
+            exit 1
+        else
+            echo "Dumped $APP_LONG_NAME."
+        fi
+    fi
+}
+
+list() {
+  echo "Available instances..."
+  for instance in $INSTANCES_DIRECTORY/* ; do
+	echo "	" `basename $instance`;
+  done
+}
+
+#
+# Checking parameters
+#
+
+# Command parameter
+if [ "x$1" = "x" ]; 
+then
+  usage $*
+  exit 2
+fi
+
+# Instance parameter
+if [ "x$2" = "x" ]; 
+then
+  usage $*
+  exit 2
+fi
+
+case "$1" in
+
+    'console')
+        checkUser touchlock $1 $INSTANCE
+        console
+        ;;
+
+    'start')
+        checkUser touchlock $1 $INSTANCE
+        start
+        ;;
+
+    'repair')
+        checkUser touchlock $1 $INSTANCE
+        stopit
+        repair
+        start
+        ;;
+
+    'stop')
+        checkUser "" $1 $INSTANCE
+        stopit
+        ;;
+
+    'restart')
+        checkUser touchlock $1 $INSTANCE
+        stopit
+        start
+        ;;
+
+    'status')
+        checkUser "" $1 $INSTANCE
+        status
+        ;;
+
+    'dump')
+        checkUser "" $1 $INSTANCE
+        dump
+        ;;
+    'list')
+        list
+        ;;
+
+    *)
+        echo "Usage: $0 { console | start | stop | restart | status | dump } <instance name>"
+        exit 1
+        ;;
+esac
+
+exit 0

Added: directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/archive/ArchiveInstallerCommand.class
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/archive/ArchiveInstallerCommand.class?rev=1748572&view=auto
==============================================================================
Binary file - no diff available.

Propchange: directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/archive/ArchiveInstallerCommand.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/archive/ArchiveTarget.class
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/archive/ArchiveTarget.class?rev=1748572&view=auto
==============================================================================
Binary file - no diff available.

Propchange: directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/archive/ArchiveTarget.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/archive/ArchiveType.class
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/archive/ArchiveType.class?rev=1748572&view=auto
==============================================================================
Binary file - no diff available.

Propchange: directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/archive/ArchiveType.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/archive/apacheds.bat
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/archive/apacheds.bat?rev=1748572&view=auto
==============================================================================
--- directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/archive/apacheds.bat (added)
+++ directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/archive/apacheds.bat Wed Jun 15 12:29:57 2016
@@ -0,0 +1,41 @@
+@echo off
+REM  Licensed to the Apache Software Foundation (ASF) under one
+REM  or more contributor license agreements.  See the NOTICE file
+REM  distributed with this work for additional information
+REM  regarding copyright ownership.  The ASF licenses this file
+REM  to you under the Apache License, Version 2.0 (the
+REM  "License"); you may not use this file except in compliance
+REM  with the License.  You may obtain a copy of the License at
+REM 
+REM    http://www.apache.org/licenses/LICENSE-2.0
+REM 
+REM  Unless required by applicable law or agreed to in writing,
+REM  software distributed under the License is distributed on an
+REM  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+REM  KIND, either express or implied.  See the License for the
+REM  specific language governing permissions and limitations
+REM  under the License.
+
+
+REM Getting the instance name from the first argument
+set INSTANCE_NAME=%1
+
+
+REM If there is no first argument, setting the instance name to 'default'
+IF [%1]==[] set INSTANCE_NAME=default
+
+
+REM Printing instance information
+echo Starting ApacheDS instance '%INSTANCE_NAME%'...
+
+
+REM Dynamically build the classpath
+set ADS_CLASSPATH=
+for %%i in (..\lib\*.jar) do call cpappend.bat %%i
+
+set ADS_CONTROLS="-Dapacheds.controls="
+
+set ADS_EXTENDED_OPERATIONS="-Dapacheds.extendedOperations="
+
+REM Launching ApacheDS
+java %ADS_CONTROLS% %ADS_EXTENDED_OPERATIONS% -Dlog4j.configuration="file:../instances/%INSTANCE_NAME%/conf/log4j.properties" -Dapacheds.log.dir=../instances/%INSTANCE_NAME%/log -cp %ADS_CLASSPATH% org.apache.directory.server.UberjarMain ../instances/%INSTANCE_NAME%

Added: directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/archive/apacheds.sh
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/archive/apacheds.sh?rev=1748572&view=auto
==============================================================================
--- directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/archive/apacheds.sh (added)
+++ directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/archive/apacheds.sh Wed Jun 15 12:29:57 2016
@@ -0,0 +1,218 @@
+#!/bin/bash
+#
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+#
+
+# -----------------------------------------------------------------------------
+# Control Script for the ApacheDS Server
+#
+# Environment Variable Prerequisites
+#
+#   Do not set the variables in this script. Instead put them into 
+#   $ADS_HOME/bin/setenv.sh to keep your customizations separate.
+#
+#   ADS_HOME        (Optional) The directory that contains your apacheds 
+#                   install.  Defaults to the parent directory of the
+#                   directory containing this script.
+#
+#   ADS_INSTANCES   (Optional) The parent directory for the instances.
+#                   Defaults to $ADS_HOME/instances.
+#
+#   ADS_CONTROLS    Controls to register.
+#
+#   ADS_EXTENDED_OPERATIONS
+#                   Extended operations to register.
+#   ADS_SHUTDOWN_PORT
+#                   (Optional) If specified, it must be a valid port number
+#                   between 1024 and 65536 on which ApacheDS will listen for 
+#                   a connection to trigger a polite shutdown.  Defaults to 0
+#                   indicating a dynamic port allocation.
+#
+#   JAVA_HOME       (Optional) The java installation directory.  If not
+#                   not specified, the java from $PATH will be used.
+#
+#   JAVA_OPTS       (Optional) Any additional java options (ex: -Xms:256m)
+
+# Defaults
+ADS_SHUTDOWN_PORT=0
+
+# Detect ads home (http://stackoverflow.com/a/630387/516433)
+PROGRAM_DIR="`dirname \"$0\"`"
+[ -z "$ADS_HOME" ] && ADS_HOME="`(cd \"$PROGRAM_DIR/..\" && pwd)`"
+if [ -z "$ADS_HOME" ]; then
+    echo "Unable to detect ADS_HOME, and not specified"
+    exit 1
+fi
+
+HAVE_TTY=0
+if [ "`tty`" != "not a tty" ]; then
+    HAVE_TTY=1
+fi
+
+# OS sepecific support
+cygwin=false
+case "`uname`" in
+    CYGWIN*) cygwin=true
+esac
+
+# Checking the parameters
+ADS_INSTANCE_NAME=
+ADS_ACTION=
+if [ $# -eq 1 ]
+then
+    # Using 'default' as default instance name
+    ADS_INSTANCE_NAME="default"
+    ADS_ACTION=$1
+elif [ $# -eq 2 ]
+then
+    # Getting the instance name from the arguments
+    ADS_INSTANCE_NAME=$1
+    ADS_ACTION=$2
+else
+    # Printing usage information
+    echo "Usage: apacheds.sh [<instance name>] <action>"
+    echo "If <instance name> is ommited, 'default' will be used."
+    echo "<action> is one of start, stop."
+    exit 1
+fi
+
+[ -r "$ADS_HOME/bin/setenv.sh" ] && . "$ADS_HOME/bin/setenv.sh"
+
+# For cygwin, ensure paths or in unix format before touched
+if $cygwin; then
+    [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
+    [ -n "$ADS_HOME" ] && ADS_HOME=`cygpath --unix "$ADS_HOME"`
+    [ -n "$ADS_INSTANCES" ] && ADS_INSTANCES=`cygpath --unix "$ADS_INSTANCES"`
+fi
+
+[ -z "$ADS_INSTANCES" ] && ADS_INSTANCES="$ADS_HOME/instances"
+
+RUN_JAVA=
+if [ -z "$JAVA_HOME" ]; then
+    RUN_JAVA=$(which java)
+else 
+    RUN_JAVA=$JAVA_HOME/bin/java
+fi
+
+# Build the classpath (http://stackoverflow.com/a/4729899/516433)
+CLASSPATH=$(JARS=("$ADS_HOME"/lib/*.jar); IFS=:; echo "${JARS[*]}")
+
+ADS_INSTANCE="$ADS_INSTANCES/$ADS_INSTANCE_NAME"
+
+ADS_OUT="$ADS_INSTANCE/log/apacheds.out"
+ADS_PID="$ADS_INSTANCE/run/apacheds.pid"
+
+# For cygwin, switch to windows paths before running
+if $cygwin; then
+    JAVA_HOME=`cygpath --absolute --windows "$JAVA_HOME"`
+    ADS_HOME=`cygpath --absolute --windows "$ADS_HOME"`
+    ADS_INSTANCES=`cygpath --absolute --windows "$ADS_INSTANCES"`
+    ADS_INSTANCE=`cygpath --absolute --windows "$ADS_INSTANCE"`
+    CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
+fi
+
+[ -z "$ADS_CONTROLS" ] && ADS_CONTROLS="-Dapacheds.controls=org.apache.directory.api.ldap.codec.controls.cascade.CascadeFactory,org.apache.directory.api.ldap.codec.controls.manageDsaIT.ManageDsaITFactory,org.apache.directory.api.ldap.codec.controls.proxiedauthz.ProxiedAuthzFactory,org.apache.directory.api.ldap.codec.controls.search.entryChange.EntryChangeFactory,org.apache.directory.api.ldap.codec.controls.search.pagedSearch.PagedResultsFactory,org.apache.directory.api.ldap.codec.controls.search.persistentSearch.PersistentSearchFactory,org.apache.directory.api.ldap.codec.controls.search.subentries.SubentriesFactory,org.apache.directory.api.ldap.extras.controls.ppolicy_impl.PasswordPolicyFactory,org.apache.directory.api.ldap.extras.controls.syncrepl_impl.SyncDoneValueFactory,org.apache.directory.api.ldap.extras.controls.syncrepl_impl.SyncInfoValueFactory,org.apache.directory.api.ldap.extras.controls.syncrepl_impl.SyncRequestValueFactory,org.apache.directory.api.ldap.extras.controls.s
 yncrepl_impl.SyncStateValueFactory"
+
+[ -z "$ADS_EXTENDED_OPERATIONS" ] && ADS_EXTENDED_OPERATIONS="-Dapacheds.extendedOperations=org.apache.directory.api.ldap.extras.extended.ads_impl.cancel.CancelFactory,org.apache.directory.api.ldap.extras.extended.ads_impl.certGeneration.CertGenerationFactory,org.apache.directory.api.ldap.extras.extended.ads_impl.gracefulShutdown.GracefulShutdownFactory,org.apache.directory.api.ldap.extras.extended.ads_impl.storedProcedure.StoredProcedureFactory,org.apache.directory.api.ldap.extras.extended.ads_impl.gracefulDisconnect.GracefulDisconnectFactory"
+
+if [ $HAVE_TTY -eq 1 ]; then
+    echo "Using ADS_HOME:    $ADS_HOME"
+    echo "Using JAVA_HOME:   $JAVA_HOME"
+    echo ""
+fi
+
+if [ "$ADS_ACTION" = "start" ]; then
+    # Printing instance information
+    [ $HAVE_TTY -eq 1 ] && echo "Starting ApacheDS instance '$ADS_INSTANCE_NAME'..."
+
+    if [ -f $ADS_PID ]; then
+        PID=`cat $ADS_PID`
+        if kill -0 $PID > /dev/null 2>&1; then
+            echo "ApacheDS is already running as $PID"
+            exit 0
+        fi
+    fi
+
+    # Launching ApacheDS
+    eval "\"$RUN_JAVA\"" $JAVA_OPTS $ADS_CONTROLS $ADS_EXTENDED_OPERATIONS \
+        -Dlog4j.configuration="\"file:$ADS_INSTANCE/conf/log4j.properties\"" \
+        -Dapacheds.shutdown.port="\"$ADS_SHUTDOWN_PORT\"" \
+        -Dapacheds.log.dir="\"$ADS_INSTANCE/log\"" \
+        -classpath "\"$CLASSPATH\"" \
+        org.apache.directory.server.UberjarMain "\"$ADS_INSTANCE\"" \
+        > "$ADS_OUT" 2>&1 "&"
+    echo $! > "$ADS_PID"
+elif [ "$ADS_ACTION" = "run" ]; then
+    # Printing instance information
+    [ $HAVE_TTY -eq 1 ] && echo "Running ApacheDS instance '$ADS_INSTANCE_NAME'..."
+
+    # Launching ApacheDS
+    eval "\"$RUN_JAVA\"" $JAVA_OPTS $ADS_CONTROLS $ADS_EXTENDED_OPERATIONS \
+        -Dlog4j.configuration="\"file:$ADS_INSTANCE/conf/log4j.properties\"" \
+        -Dapacheds.log.dir="\"$ADS_INSTANCE/log\"" \
+        -Dapacheds.shutdown.port="\"$ADS_SHUTDOWN_PORT\"" \
+        -classpath "\"$CLASSPATH\"" \
+        org.apache.directory.server.UberjarMain "\"$ADS_INSTANCE\""
+elif [ "$ADS_ACTION" = "status" ]; then
+    if [ -f $ADS_PID ]; then
+        PID=`cat $ADS_PID`
+        if kill -0 $PID > /dev/null 2>&1; then
+            echo "ApacheDS is running as $PID"
+        else
+            echo "ApacheDS is not running"
+        fi
+    else
+        [ $HAVE_TTY -eq 1 ] && echo "ApacheDS is not running"
+    fi
+elif [ "$ADS_ACTION" = "stop" ]; then
+    # Printing instance information
+    if [ -f $ADS_PID ]; then
+        PID=`cat $ADS_PID`
+        [ $HAVE_TTY -eq 1 ] && echo "Stopping ApacheDS instance '$ADS_INSTANCE_NAME' running as $PID"
+
+        # Terminate the process
+        if [ $ADS_SHUTDOWN_PORT -ge 0 ]; then
+            eval "\"$RUN_JAVA\"" $JAVA_OPTS $ADS_CONTROLS $ADS_EXTENDED_OPERATIONS \
+                -Dlog4j.configuration="\"file:$ADS_INSTANCE/conf/log4j.properties\"" \
+                -Dapacheds.log.dir="\"$ADS_INSTANCE/log\"" \
+                -Dapacheds.shutdown.port="\"$ADS_SHUTDOWN_PORT\"" \
+                -classpath "\"$CLASSPATH\"" \
+                org.apache.directory.server.UberjarMain "\"$ADS_INSTANCE\"" stop
+        else
+            # No port specified so try term signal instead
+            kill -15 $PID > /dev/null 2>&1
+        fi
+
+        ATTEMPTS_REMAINING=60
+        while [ $ATTEMPTS_REMAINING -gt 0 ]; do
+            kill -0 $PID > /dev/null 2>&1
+            EXIT_CODE=$?
+            if [ $EXIT_CODE -gt 0 ]; then
+                rm -f $ADS_PID > /dev/null 2>&1
+                [ $HAVE_TTY -eq 1 ] && echo "ApacheDS instance '$ADS_INSTANCE_NAME' stopped successfully"
+                exit 0
+            fi
+            sleep 1
+            [ $HAVE_TTY -eq 1 ] && echo "ApacheDS stopping $PID: $EXIT_CODE, $ATTEMPTS_REMAINING attempts remaining"
+            ATTEMPTS_REMAINING=`expr $ATTEMPTS_REMAINING - 1`
+        done
+        exit 1 # failed to exit successfully
+    else
+        [ $HAVE_TTY -eq 1 ] && echo "ApacheDS is not running, $ADS_PID does not exist"
+    fi
+fi

Added: directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/archive/cpappend.bat
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/archive/cpappend.bat?rev=1748572&view=auto
==============================================================================
--- directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/archive/cpappend.bat (added)
+++ directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/archive/cpappend.bat Wed Jun 15 12:29:57 2016
@@ -0,0 +1,36 @@
+@echo off
+rem Licensed to the Apache Software Foundation (ASF) under one or more
+rem contributor license agreements.  See the NOTICE file distributed with
+rem this work for additional information regarding copyright ownership.
+rem The ASF licenses this file to You under the Apache License, Version 2.0
+rem (the "License"); you may not use this file except in compliance with
+rem the License.  You may obtain a copy of the License at
+rem
+rem     http://www.apache.org/licenses/LICENSE-2.0
+rem
+rem Unless required by applicable law or agreed to in writing, software
+rem distributed under the License is distributed on an "AS IS" BASIS,
+rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+rem See the License for the specific language governing permissions and
+rem limitations under the License.
+
+rem ---------------------------------------------------------------------------
+rem Append to CLASSPATH
+rem Borrowed from apache-tomcat
+rem
+rem $Id: cpappend.bat 747975 2009-02-26 00:20:50Z felixk $
+rem ---------------------------------------------------------------------------
+
+rem Process the first argument
+if ""%1"" == """" goto end
+set ADS_CLASSPATH=%ADS_CLASSPATH%;%1
+shift
+
+rem Process the remaining arguments
+:setArgs
+if ""%1"" == """" goto doneSetArgs
+set ADS_CLASSPATH=%ADS_CLASSPATH% %1
+shift
+goto setArgs
+:doneSetArgs
+:end

Added: directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/archive/log4j.properties
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/archive/log4j.properties?rev=1748572&view=auto
==============================================================================
--- directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/archive/log4j.properties (added)
+++ directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/archive/log4j.properties Wed Jun 15 12:29:57 2016
@@ -0,0 +1,43 @@
+#############################################################################
+#    Licensed to the Apache Software Foundation (ASF) under one or more
+#    contributor license agreements.  See the NOTICE file distributed with
+#    this work for additional information regarding copyright ownership.
+#    The ASF licenses this file to You under the Apache License, Version 2.0
+#    (the "License"); you may not use this file except in compliance with
+#    the License.  You may obtain a copy of the License at
+#
+#       http://www.apache.org/licenses/LICENSE-2.0
+#
+#    Unless required by applicable law or agreed to in writing, software
+#    distributed under the License is distributed on an "AS IS" BASIS,
+#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#    See the License for the specific language governing permissions and
+#    limitations under the License.
+#############################################################################
+log4j.rootCategory=WARN, F, stdout
+
+log4j.appender.F=org.apache.log4j.RollingFileAppender
+log4j.appender.F.File=${apacheds.log.dir}/apacheds.log
+log4j.appender.F.MaxFileSize=100MB
+log4j.appender.F.MaxBackupIndex=3
+log4j.appender.F.layout=org.apache.log4j.PatternLayout
+log4j.appender.F.layout.ConversionPattern=[%d{HH:mm:ss}] %p [%c] - %m%n
+
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=[%d{HH:mm:ss}] %p [%c] - %m%n
+
+# Specific loggers (useful for debugging)
+#log4j.logger.jdbm.recman.BaseRecordManager=DEBUG
+#log4j.logger.org.apache.directory.server.OPERATION_LOG=DEBUG
+#log4j.logger.org.apache.directory.server.OPERATION_TIME=DEBUG
+#log4j.logger.org.apache.directory.api.CODEC_LOG=DEBUG
+#log4j.logger.org.apache.directory.server.ACI_LOG=DEBUG
+#log4j.logger.org.apache.directory.server.PROVIDER_LOG=DEBUG
+#log4j.logger.org.apache.directory.server.CONSUMER_LOG=DEBUG
+#log4j.logger.org.apache.directory.CURSOR_LOG=DEBUG
+#log4j.logger.org.apache.directory.api=DEBUG
+#log4j.logger.org.apache.directory.server=DEBUG
+#log4j.logger.net.sf.ehcache=DEBUG
+#log4j.logger.org.apache.mina=DEBUG
+

Added: directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/bin/BinInstallerCommand.class
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/bin/BinInstallerCommand.class?rev=1748572&view=auto
==============================================================================
Binary file - no diff available.

Propchange: directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/bin/BinInstallerCommand.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/bin/BinTarget.class
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/bin/BinTarget.class?rev=1748572&view=auto
==============================================================================
Binary file - no diff available.

Propchange: directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/bin/BinTarget.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/bin/bootstrap.sh
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/bin/bootstrap.sh?rev=1748572&view=auto
==============================================================================
--- directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/bin/bootstrap.sh (added)
+++ directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/bin/bootstrap.sh Wed Jun 15 12:29:57 2016
@@ -0,0 +1,281 @@
+#!/bin/sh
+
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License. 
+
+
+#------------------------------------------------------------------------------
+# Verifies the exit code of the last command used. If the exit code is 0, the
+# execution continues, if not the execution is halted and we exit the program
+# with a 1 value.
+#------------------------------------------------------------------------------
+verifyExitCode()
+{
+    if [ $? -ne 0 ]
+    then
+               echo "An error occurred when installing ApacheDS."
+               echo "ApacheDS installation failed."
+               exit 1
+    fi
+}
+
+# Variables
+export APACHEDS_VERSION=${apacheds.version}
+
+# Displaying welcome message and license terms
+more <<"EOF"
+                   WELCOME TO THE APACHEDS INSTALLER PROGRAM
+                    _                     _          ____  ____ 
+                   / \   _ __   __ _  ___| |__   ___|  _ \/ ___|
+                  / _ \ | '_ \ / _` |/ __| '_ \ / _ \ | | \___ \ 
+                 / ___ \| |_) | (_| | (__| | | |  __/ |_| |___) |
+                /_/   \_\ .__/ \__,_|\___|_| |_|\___|____/|____/ 
+                        |_|
+
+    ApacheDS is distributed under the Apache Software License Version 2.0.
+            
+            Please, take some time to read the license terms below.
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+EOF
+
+# Asking for license agreement
+echo ""
+echo "Do you agree to the above license terms? [yes or no]"
+
+# Reading userInput
+while [ "true" ];
+do
+    read userInput leftover
+    case $userInput in
+        [yY] | [yY][eE][sS])
+            break;;
+        [nN] | [nN][oO])
+            echo "If you don't agree to the license this software cannot be installed."
+            exit 1
+    esac
+done
+
+# This is the name of the contained archive
+archiveName=__tmp.tar.gz
+
+# Unpacking the installer
+echo "Unpacking the installer..."
+trap 'rm -f $archiveName; exit 1' HUP INT QUIT TERM
+tail -n +@LINES@ $0 > $archiveName
+verifyExitCode
+
+# Extracting the installer
+echo "Extracting the installer..."
+tar xzf $archiveName
+verifyExitCode
+
+# Launching the installer
+cd sh
+verifyExitCode
+. ./install.sh
+verifyExitCode
+
+# Cleaning
+cd ..
+verifyExitCode
+rm -rf sh
+verifyExitCode
+rm -rf instance
+verifyExitCode
+rm -rf server
+verifyExitCode
+rm -f $archiveName
+verifyExitCode
+
+# Finishing
+echo "Done."
+echo "ApacheDS has been installed successfully."
+exit 0

Added: directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/bin/createInstaller.sh
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/bin/createInstaller.sh?rev=1748572&view=auto
==============================================================================
--- directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/bin/createInstaller.sh (added)
+++ directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/bin/createInstaller.sh Wed Jun 15 12:29:57 2016
@@ -0,0 +1,35 @@
+#!/bin/sh
+
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License. 
+
+# Copying bootstrap.sh to the installer (and replacing the @lines@ variable)
+lines=`wc -l < bootstrap.sh`
+lines=`expr $lines + 1`
+sed -e "s/@LINES@/${lines}/" bootstrap.sh > ../../${finalName}
+
+# Packing the data and shell scripts
+tar czf ${tmpArchive} instance/* server/* sh/*
+
+# Adding the temp archive to the installer
+cat ${tmpArchive} >> ../../${finalName}
+
+# Modifying permission on the installer so it is executable
+chmod +x ../../${finalName}
+
+# Cleaning
+rm ${tmpArchive}

Added: directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/bin/functions.sh
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/bin/functions.sh?rev=1748572&view=auto
==============================================================================
--- directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/bin/functions.sh (added)
+++ directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/bin/functions.sh Wed Jun 15 12:29:57 2016
@@ -0,0 +1,127 @@
+#!/bin/sh
+
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License. 
+
+#------------------------------------------------------------------------------
+# Updates a variables that will be exported. The question, the variable name, 
+# the default value and the mandatory aspect of the input are stored in the 
+# "variables.sh" file under the following form:
+#   <question> | <variable> | [<default value>] | [<mandatory>]
+#------------------------------------------------------------------------------
+ask_param()
+{
+    # Skipping empty lines
+    if [ -z "$1" ]
+    then 
+        return
+    fi
+
+    # Searching for the current line (which is not a comment)
+    curline=`cat -n variables.sh | grep -e "^[[:space:]]*$1[[:space:]][[:space:]]*" | sed -e 's/^[^a-aA-Z|#-]*//'`
+    comment=`echo $curline | grep -e "^\#"`
+
+    # Skipping comments
+    if [ -n "$comment" ]
+    then
+        return
+    fi
+  
+    # Getting question, variable, default and mandatory values
+    question=`echo $curline | cut -d'|' -f1 | sed -e 's/^[ ]*//' -e 's/[ ]*$//'`   # The question
+    variable=`echo $curline | cut -d'|' -f2 | sed -e 's/^[ ]*//' -e 's/[ ]*$//'`   # The variable
+    default=`echo $curline | cut -d'|' -f3 | sed -e 's/^[ ]*//' -e 's/[ ]*$//'`     # The default value
+    mandatory=`echo $curline | cut -d'|' -f4 | sed -e 's/^[ ]*//' -e 's/[ ]*$//'`  # Mandatory input ?
+  
+    # Use the commands below for debug
+    #echo "Current Line  = " $curline
+    #echo "Question      = " $question
+    #echo "Variable      = " $variable
+    #echo "Default value = " $default
+    #echo "Mandatory     = " $mandatory
+  
+    # The line must include a variable
+    if [ -z "$variable" ]
+    then
+        return
+     fi
+
+    # If there is no question, we update the variable and we return
+    if [ -z "$question" ]
+    then
+        var=`eval echo $default`
+        export $variable="$var"
+        return
+    fi
+ 
+    # Removing extra spaces from mandatory
+    if [ -n "$mandatory" ]
+    then
+        mandatory=`echo $mandatory | sed -e 's/[[:space:]*M[[:space:]]*/M/'`
+    fi
+
+    # Let's ask the question
+    if [ -n "$default" ]
+    then
+        printf "$question? [Default: ";
+        printf `eval echo $default`;
+        printf "]\n"
+    else
+        echo "$question?"
+    fi
+
+    # Reading anwser
+    read read_answer
+    while [ -z "$read_answer" ]
+    do
+        if [ "x$mandatory" = "xM" ]
+        then
+            echo "You have to anwser, please."
+            if [ -n "$default" ]
+            then
+                printf "$question? [Default: ";
+                printf `eval echo $default`;
+                printf "]\n"
+            else
+                echo "$question?"
+            fi
+            read read_answer
+        else
+            # If the user does not enter any input and the input is not 
+            # mandatory, we use the default value
+            read_answer=`eval echo $default`
+        fi
+    done
+
+    # Exporting the variable
+    export $variable="$read_answer"
+}
+
+#------------------------------------------------------------------------------
+# Verifies the exit code of the last command used. If the exit code is 0, the
+# execution continues, if not the execution is halted and we exit the program
+# with a 1 value.
+#------------------------------------------------------------------------------
+verifyExitCode()
+{
+    if [ $? -ne 0 ]
+    then    
+		echo "An error occurred when installing ApacheDS."
+		echo "ApacheDS installation failed."
+		exit 1
+    fi
+}

Added: directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/bin/install.sh
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/bin/install.sh?rev=1748572&view=auto
==============================================================================
--- directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/bin/install.sh (added)
+++ directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/bin/install.sh Wed Jun 15 12:29:57 2016
@@ -0,0 +1,163 @@
+#!/bin/sh
+
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License. 
+
+# Loading functions
+. ./functions.sh
+
+# Reading variables file and asking questions
+lines=`wc -l < ./variables.sh`
+count=1
+lines=`expr ${lines:-0} + 1`
+while [ $count -lt $lines ]
+do
+    ask_param $count
+    count=`expr ${count:-0} + 1`
+done
+
+#
+# Starting installation
+#
+
+# Verifying the user is root
+#if ( test `id -un` != "root" )
+#then
+#    echo "Only root can install this software."
+#    echo "ApacheDS installation has failed."
+#    exit 1 ;
+#fi
+
+# Installing
+echo "Installing..."
+
+# Filtering apacheds script file
+sed -e "s;@installation.directory@;${APACHEDS_HOME_DIRECTORY};" ../server/bin/apacheds > ../server/bin/apacheds.tmp
+verifyExitCode
+
+mv ../server/bin/apacheds.tmp ../server/bin/apacheds
+verifyExitCode
+
+sed -e "s;@instances.directory@;${INSTANCES_HOME_DIRECTORY};" ../server/bin/apacheds > ../server/bin/apacheds.tmp
+verifyExitCode
+
+mv ../server/bin/apacheds.tmp ../server/bin/apacheds
+verifyExitCode
+
+sed -e "s;@user@;${RUN_AS_USER};" ../server/bin/apacheds > ../server/bin/apacheds.tmp
+verifyExitCode
+
+mv ../server/bin/apacheds.tmp ../server/bin/apacheds
+verifyExitCode
+
+sed -e "s;@group@;${RUN_AS_GROUP};" ../server/bin/apacheds > ../server/bin/apacheds.tmp
+verifyExitCode
+
+mv ../server/bin/apacheds.tmp ../server/bin/apacheds
+verifyExitCode
+
+# Copying the server files
+mkdir -p $APACHEDS_HOME_DIRECTORY
+verifyExitCode
+cp -r ../server/* $APACHEDS_HOME_DIRECTORY
+verifyExitCode
+
+# Creating instances home directory
+mkdir -p $INSTANCES_HOME_DIRECTORY
+verifyExitCode
+
+# Creating initd directory if needed
+mkdir -p $STARTUP_SCRIPT_DIRECTORY
+verifyExitCode
+
+# Creating the default instance home directory
+DEFAULT_INSTANCE_HOME_DIRECTORY=$INSTANCES_HOME_DIRECTORY/$DEFAULT_INSTANCE_NAME
+verifyExitCode
+mkdir -p $DEFAULT_INSTANCE_HOME_DIRECTORY
+verifyExitCode
+mkdir -p $DEFAULT_INSTANCE_HOME_DIRECTORY/conf
+verifyExitCode
+mkdir -p $DEFAULT_INSTANCE_HOME_DIRECTORY/log
+verifyExitCode
+mkdir -p $DEFAULT_INSTANCE_HOME_DIRECTORY/partitions
+verifyExitCode
+mkdir -p $DEFAULT_INSTANCE_HOME_DIRECTORY/run
+verifyExitCode
+
+# Filtering default instance wrapper.conf file
+sed -e "s;@installation.directory@;${APACHEDS_HOME_DIRECTORY};" ../instance/wrapper-instance.conf > ../instance/wrapper-instance.conf.tmp
+verifyExitCode
+mv ../instance/wrapper-instance.conf.tmp ../instance/wrapper-instance.conf
+verifyExitCode
+
+# Copying the default instance files
+cp ../instance/config.ldif $DEFAULT_INSTANCE_HOME_DIRECTORY/conf/
+verifyExitCode
+cp ../instance/log4j.properties $DEFAULT_INSTANCE_HOME_DIRECTORY/conf/
+verifyExitCode
+cp ../instance/wrapper-instance.conf $DEFAULT_INSTANCE_HOME_DIRECTORY/conf/
+verifyExitCode
+
+# Filtering and copying the init.d script
+sed -e "s;@installation.directory@;${APACHEDS_HOME_DIRECTORY};" ../instance/etc-initd-script > ../instance/etc-initd-script.tmp
+verifyExitCode
+mv ../instance/etc-initd-script.tmp ../instance/etc-initd-script
+verifyExitCode
+sed -e "s;@default.instance.name@;$DEFAULT_INSTANCE_NAME;" ../instance/etc-initd-script > ../instance/etc-initd-script.tmp
+verifyExitCode
+mv ../instance/etc-initd-script.tmp ../instance/etc-initd-script
+verifyExitCode
+cp ../instance/etc-initd-script $STARTUP_SCRIPT_DIRECTORY/apacheds-$APACHEDS_VERSION-$DEFAULT_INSTANCE_NAME
+verifyExitCode
+
+# Setting the correct permissions on executable files
+chmod +x $STARTUP_SCRIPT_DIRECTORY/apacheds-$APACHEDS_VERSION-$DEFAULT_INSTANCE_NAME
+verifyExitCode
+chmod +x $APACHEDS_HOME_DIRECTORY/bin/apacheds
+verifyExitCode
+chmod +x $APACHEDS_HOME_DIRECTORY/bin/wrapper
+verifyExitCode
+
+# Creating the apacheds user and group (only if needed)
+USER=`eval "id -u -n $RUN_AS_USER"`
+
+# If we don't have any group, use the user's group
+if [ "X$RUN_AS_GROUP" = "X" ]
+then
+        RUN_AS_GROUP=$RUN_AS_USER
+fi
+
+# Check that the group exists
+GROUP=`eval "if grep -q $RUN_AS_GROUP /etc/group; then echo "$RUN_AS_GROUP"; else echo ""; fi"`
+
+# Create the group if it does not exist
+if [ ! "X$RUN_AS_GROUP" = "XGROUP" ]
+then
+	/usr/sbin/groupadd $RUN_AS_GROUP >/dev/null 2>&1 || :
+	verifyExitCode
+fi
+
+if [ ! "X$RUN_AS_USER" = "X$USER" ]
+then
+	/usr/sbin/useradd -g $RUN_AS_GROUP -d $APACHEDS_HOME_DIRECTORY $RUN_AS_USER >/dev/null 2>&1 || :
+	verifyExitCode
+fi
+
+# Modifying owner
+chown -R $RUN_AS_USER:$RUN_AS_USER $APACHEDS_HOME_DIRECTORY
+chown -R $RUN_AS_USER:$RUN_AS_USER $INSTANCES_HOME_DIRECTORY
+chown $RUN_AS_USER:$RUN_AS_USER $STARTUP_SCRIPT_DIRECTORY/apacheds-$APACHEDS_VERSION-$DEFAULT_INSTANCE_NAME

Added: directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/bin/variables.sh
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/bin/variables.sh?rev=1748572&view=auto
==============================================================================
--- directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/bin/variables.sh (added)
+++ directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/bin/variables.sh Wed Jun 15 12:29:57 2016
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License. 
+
+Where do you want to install ApacheDS|APACHEDS_HOME_DIRECTORY|/opt/apacheds-${APACHEDS_VERSION}||
+Where do you want to install ApacheDS instances|INSTANCES_HOME_DIRECTORY|/var/lib/apacheds-${APACHEDS_VERSION}||
+What name do you want for the default instance|DEFAULT_INSTANCE_NAME|default||
+Where do you want to install the startup script|STARTUP_SCRIPT_DIRECTORY|/etc/init.d||
+Which user do you want to run the server with (if not already existing, the specified user will be created)|RUN_AS_USER|apacheds||
+Which group do you want to run the server with (if not already existing, the specified group will be created)|RUN_AS_GROUP|apacheds||

Added: directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/deb/DebInstallerCommand.class
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/deb/DebInstallerCommand.class?rev=1748572&view=auto
==============================================================================
Binary file - no diff available.

Propchange: directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/deb/DebInstallerCommand.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/deb/DebTarget.class
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/deb/DebTarget.class?rev=1748572&view=auto
==============================================================================
Binary file - no diff available.

Propchange: directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/deb/DebTarget.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/deb/control
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/deb/control?rev=1748572&view=auto
==============================================================================
--- directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/deb/control (added)
+++ directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/deb/control Wed Jun 15 12:29:57 2016
@@ -0,0 +1,13 @@
+Package: apacheds
+Version: ${version.debian}
+Section: devel
+Priority: optional
+Architecture: ${arch}
+Installed-Size: 16000
+Maintainer: Apache Directory Project <de...@directory.apache.org>
+Description: LDAP Server
+ ApacheDS is an embeddable directory server entirely written in Java, which 
+ has been certified LDAPv3 compatible by the Open Group. Besides LDAP it 
+ supports Kerberos 5 and the Change Password Protocol. It has been designed 
+ to introduce triggers, stored procedures, queues and views to the world of 
+ LDAP which has lacked these rich constructs.

Added: directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/deb/postinst
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/deb/postinst?rev=1748572&view=auto
==============================================================================
--- directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/deb/postinst (added)
+++ directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/deb/postinst Wed Jun 15 12:29:57 2016
@@ -0,0 +1,40 @@
+#!/bin/sh
+#
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+#
+set -e
+
+# Setting executable permissions
+chmod +x /opt/apacheds-${version}/bin/apacheds
+chmod +x /opt/apacheds-${version}/bin/wrapper
+chmod +x /etc/init.d/apacheds-${version}-default
+
+# Creating the apacheds user (only if needed)
+USER=`eval "id -u -n apacheds 2>/dev/null || :"`
+if [ ! "Xapacheds" = "X$USER" ]
+then
+	/usr/sbin/groupadd --system apacheds >/dev/null 2>&1 || :
+	/usr/sbin/useradd --system -g apacheds -d /opt/apacheds-${version} apacheds >/dev/null 2>&1 || :
+fi
+
+# Modifying owner
+chown -R apacheds:apacheds /opt/apacheds-${version}
+chown -R apacheds:apacheds /var/lib/apacheds-${version}
+chown root:root /etc/init.d/apacheds-${version}-default
+
+

Added: directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/deb/prerm
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/deb/prerm?rev=1748572&view=auto
==============================================================================
--- directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/deb/prerm (added)
+++ directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/deb/prerm Wed Jun 15 12:29:57 2016
@@ -0,0 +1,38 @@
+#!/bin/sh
+#
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+#
+set -e
+
+# Emptying some directories
+for instance_dir in `find /var/lib/apacheds-${version} -maxdepth 1 -mindepth 1 -type d`; do
+  # Get instance and use it to shutdown
+  instance=$(echo $instance_dir | sed -e 's/.*apacheds.*\///g')
+  echo Shutting down ApacheDS instance $instance
+  /opt/apacheds-${version}/bin/apacheds stop $instance
+
+  # Backup old instance folders before deleting them
+  timestamp=$(date '+%Y%m%d_%H%M%S')
+  parent_dir=/var/lib
+  tarball=$parent_dir/apacheds-${version}-$instance"_"$timestamp.tgz
+  echo Backing up old $instance instance data to $tarball
+  tar -zcf $tarball $instance_dir
+  rm -rf $instance_dir
+done
+
+

Added: directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/etc-initd-script
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/etc-initd-script?rev=1748572&view=auto
==============================================================================
--- directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/etc-initd-script (added)
+++ directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/etc-initd-script Wed Jun 15 12:29:57 2016
@@ -0,0 +1,36 @@
+#!/bin/sh
+#
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+#
+
+# *** Linux Standard Base Information ***
+### BEGIN INIT INFO
+# Provides: apacheds
+# Required-Start: $local_fs $remote_fs $network $syslog
+# Required-Stop: $local_fs $remote_fs $network $syslog
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: Start and stop ApacheDS
+### END INIT INFO
+
+# *** Information for chkconfig ***
+# chkconfig: 2345 91 35
+# description: Start and stop ApacheDS
+
+# Forwarding the command to the default script
+@installation.directory@/bin/apacheds $1 @default.instance.name@
\ No newline at end of file

Added: directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/log4j.properties
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/log4j.properties?rev=1748572&view=auto
==============================================================================
--- directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/log4j.properties (added)
+++ directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/log4j.properties Wed Jun 15 12:29:57 2016
@@ -0,0 +1,47 @@
+#############################################################################
+#    Licensed to the Apache Software Foundation (ASF) under one or more
+#    contributor license agreements.  See the NOTICE file distributed with
+#    this work for additional information regarding copyright ownership.
+#    The ASF licenses this file to You under the Apache License, Version 2.0
+#    (the "License"); you may not use this file except in compliance with
+#    the License.  You may obtain a copy of the License at
+#
+#       http://www.apache.org/licenses/LICENSE-2.0
+#
+#    Unless required by applicable law or agreed to in writing, software
+#    distributed under the License is distributed on an "AS IS" BASIS,
+#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#    See the License for the specific language governing permissions and
+#    limitations under the License.
+#############################################################################
+log4j.rootCategory=WARN, R, stdout
+
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+
+log4j.appender.R=org.apache.log4j.RollingFileAppender
+log4j.appender.R.File=${apacheds.log.dir}/apacheds.log
+
+log4j.appender.R.MaxFileSize=1024KB
+# Keep some backup files
+log4j.appender.R.MaxBackupIndex=5
+
+log4j.appender.R.layout=org.apache.log4j.PatternLayout
+log4j.appender.R.layout.ConversionPattern=[%d{HH:mm:ss}] %p [%c] - %m%n
+
+log4j.appender.stdout.layout.ConversionPattern=[%d{HH:mm:ss}] %p [%c] - %m%n
+
+# with these we'll not get inundated when switching to DEBUG
+log4j.logger.jdbm.recman.BaseRecordManager=WARN
+log4j.logger.org.apache.directory.server.OPERATION_LOG=WARN
+log4j.logger.org.apache.directory.server.OPERATION_TIME=WARN
+log4j.logger.org.apache.directory.api.CODEC_LOG=WARN
+log4j.logger.org.apache.directory.server.ACI_LOG=WARN
+log4j.logger.org.apache.directory.server.PROVIDER_LOG=WARN
+log4j.logger.org.apache.directory.server.CONSUMER_LOG=WARN
+log4j.logger.org.apache.directory.CURSOR_LOG=WARN
+log4j.logger.org.apache.directory.api=WARN
+log4j.logger.org.apache.directory.server=WARN
+log4j.logger.net.sf.ehcache=WARN
+log4j.logger.org.apache.mina=WARN
+

Added: directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/macosxpkg/DS_Store
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/macosxpkg/DS_Store?rev=1748572&view=auto
==============================================================================
Binary file - no diff available.

Propchange: directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/macosxpkg/DS_Store
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/macosxpkg/Info.plist
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/macosxpkg/Info.plist?rev=1748572&view=auto
==============================================================================
--- directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/macosxpkg/Info.plist (added)
+++ directory/apacheds/branches/apacheds-value/benchmarks/installers-maven-plugin/target/classes/org/apache/directory/server/installers/macosxpkg/Info.plist Wed Jun 15 12:29:57 2016
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
+<plist version="1.0">
+<dict>
+	<key>CFBundleGetInfoString</key>
+	<string>Copyright © 2010 Apache Software Foundation</string>
+	<key>CFBundleIdentifier</key>
+	<string>org.apache.directory.server</string>
+	<key>IFPkgFlagAllowBackRev</key>
+	<false/>
+	<key>IFPkgFlagAuthorizationAction</key>
+	<string>AdminAuthorization</string>
+	<key>IFPkgFlagBackgroundAlignment</key>
+	<string>topleft</string>
+	<key>IFPkgFlagBackgroundScaling</key>
+	<string>none</string>
+	<key>IFPkgFlagDefaultLocation</key>
+	<string>/</string>
+	<key>IFPkgFlagFollowLinks</key>
+	<true/>
+	<key>IFPkgFlagInstallFat</key>
+	<false/>
+	<key>IFPkgFlagIsRequired</key>
+	<false/>
+	<key>IFPkgFlagOverwritePermissions</key>
+	<false/>
+	<key>IFPkgFlagRelocatable</key>
+	<false/>
+	<key>IFPkgFlagRestartAction</key>
+	<string>NoRestart</string>
+	<key>IFPkgFlagRootVolumeOnly</key>
+	<true/>
+	<key>IFPkgFlagUpdateInstalledLanguages</key>
+	<false/>
+	<key>IFPkgFormatVersion</key>
+	<real>0.10000000149011612</real>
+</dict>
+</plist>