mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
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:
@@ -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
|
@@ -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
|
||||
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user