Skip to content

Commit

Permalink
[DS-737] Expose CLASSPATH calculated by launcher
Browse files Browse the repository at this point in the history
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@5996 9c30dcfa-912a-0410-8fc2-9e0234be79fd
  • Loading branch information
mwoodiupui committed Dec 17, 2010
1 parent ce87a26 commit 4c1bb2f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
6 changes: 6 additions & 0 deletions dspace/bin/dspace
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 7 additions & 1 deletion dspace/bin/dspace.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -71,4 +77,4 @@ set DSPACE_CLASSPATH=
:end

REM Back to original dir
chdir /D %CURRENT_DIR%
chdir /D %CURRENT_DIR%
6 changes: 6 additions & 0 deletions dspace/config/launcher.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 4c1bb2f

Please sign in to comment.