Dspace bat file (#2544)

* First test

* Minor changes to bat file

* Removed files not to part of  the PR

* Added config files

* Removed buildpath.bat

* Changed bat file

* Enabled shibooleth in config

* Removed unnecessary comment from bat file

* Linux dspace script made similar to dspace bat file

* Removed authentication.cfg from this PR

* Now really removed authentication.cfg from this PR

* Remove OAI from classpath

Co-authored-by: Tim Donohue <tim.donohue@lyrasis.org>
This commit is contained in:
Julius Gruber
2020-02-03 18:18:57 +01:00
committed by GitHub
parent 9dbda4e2e1
commit 707168dd1e
3 changed files with 6 additions and 22 deletions

View File

@@ -1,14 +0,0 @@
@REM ###########################################################################
@REM # The contents of this file are subject to the license and copyright
@REM # detailed in the LICENSE and NOTICE files at the root of the source
@REM # tree and available online at
@REM #
@REM # http://www.dspace.org/license/
@REM ###########################################################################
@REM # 'buildpath.bat' script
@REM # A simple Windows batch script to facilitate building a CLASSPATH dynamically
@REM # in 'dspace.bat' (and similar Windows batch scripts)
@echo off
set DSPACE_CLASSPATH=%DSPACE_CLASSPATH%;%~s1

View File

@@ -12,20 +12,18 @@
BINDIR=`dirname $0`
DSPACEDIR=`cd "$BINDIR/.." ; pwd`
# Add the directory with all oai classes (original and overlay) needed by the 'dspace oai' launcher.xml
OAICLASSES=$DSPACEDIR/webapps/oai/WEB-INF/classes/
# Get the JARs in $DSPACEDIR/jsp/WEB-INF/lib, separated by ':'
JARS=`echo $DSPACEDIR/lib/*.jar | sed 's/ /\:/g'`
JARS="$DSPACEDIR/lib/*"
# Class path for DSpace will be:
# Any existing classpath
# The JARs (WEB-INF/lib/*.jar)
# The WEB-INF/classes directory
if [ "$CLASSPATH" = "" ]; then
FULLPATH=$OAICLASSES:$JARS:$DSPACEDIR/config
FULLPATH=$JARS:$DSPACEDIR/config
else
FULLPATH=$CLASSPATH:$OAICLASSES:$JARS:$DSPACEDIR/config
FULLPATH=$CLASSPATH:$JARS:$DSPACEDIR/config
fi

View File

@@ -24,9 +24,9 @@ goto end
:okExec
echo Using DSpace installation in: %cd%
REM Build a CLASSPATH including all classes in oai webapp, all libraries in [dspace]/lib and the config folder.
set DSPACE_CLASSPATH=%CLASSPATH%;config;webapps\oai\WEB-INF\classes\
for %%f in (lib\*.jar) DO CALL bin\buildpath.bat %%f
REM Build a CLASSPATH including all libraries in [dspace]/lib and the config folder.
set DSPACE_CLASSPATH=%CLASSPATH%;config
set DSPACE_CLASSPATH=%DSPACE_CLASSPATH%;%CURRENT_DIR%\..\lib\*
REM If the user only wants the CLASSPATH, just give it now.
if not "%1"=="classpath" goto javaOpts