mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
[DS-737] Expose CLASSPATH calculated by launcher
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@5996 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -56,6 +56,12 @@ JARS=`echo $DSPACEDIR/lib/*.jar | sed 's/ /\:/g'`
|
||||
# The WEB-INF/classes directory
|
||||
FULLPATH=$CLASSPATH:$JARS:$DSPACEDIR/config
|
||||
|
||||
# If the user only wants the CLASSPATH, just give it now.
|
||||
if [ "$1" = "classpath" ]; then
|
||||
echo $FULLPATH
|
||||
exit 0
|
||||
fi
|
||||
|
||||
#Allow user to specify java options through JAVA_OPTS variable
|
||||
if [ "$JAVA_OPTS" = "" ]; then
|
||||
#Default Java to use 256MB of memory
|
||||
|
@@ -58,6 +58,12 @@ REM Build a CLASSPATH
|
||||
set DSPACE_CLASSPATH=%CLASSPATH%;config
|
||||
for %%f in (lib\*.jar) DO CALL bin\buildpath.bat %%f
|
||||
|
||||
REM If the user only wants the CLASSPATH, just give it now.
|
||||
if "%1"!=="classpath" goto javaOpts
|
||||
echo %DSPACE_CLASSPATH%
|
||||
goto end
|
||||
|
||||
:javaOpts
|
||||
REM If JAVA_OPTS specified, use those options
|
||||
REM Otherwise, default Java to using 256MB of memory
|
||||
if "%JAVA_OPTS%"=="" set JAVA_OPTS=-Xmx256m
|
||||
@@ -71,4 +77,4 @@ set DSPACE_CLASSPATH=
|
||||
:end
|
||||
|
||||
REM Back to original dir
|
||||
chdir /D %CURRENT_DIR%
|
||||
chdir /D %CURRENT_DIR%
|
||||
|
@@ -17,6 +17,12 @@
|
||||
</step>
|
||||
</command>
|
||||
|
||||
<command>
|
||||
<name>classpath</name>
|
||||
<description>Calculate and display the DSpace classpath</description>
|
||||
<step></step>
|
||||
</command>
|
||||
|
||||
<command>
|
||||
<name>cleanup</name>
|
||||
<description>Remove deleted bitstreams from the assetstore</description>
|
||||
|
Reference in New Issue
Block a user