clean.bat 1.22 KB
Newer Older
afreyssin's avatar
afreyssin committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
REM Copyright (C) 2000 - 2012 ScalAgent Distributed Technologies
REM 
REM This library is free software; you can redistribute it and/or
REM modify it under the terms of the GNU Lesser General Public
REM License as published by the Free Software Foundation; either
REM version 2.1 of the License, or any later version.
REM 
REM This library is distributed in the hope that it will be useful,
REM but WITHOUT ANY WARRANTY; without even the implied warranty of
REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
REM Lesser General Public License for more details.
REM 
REM You should have received a copy of the GNU Lesser General Public
REM License along with this library; if not, write to the Free Software
REM Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
REM USA.

afreyssin's avatar
afreyssin committed
18 19
@echo off
REM Verify if JORAM_HOME is well defined
20
if not exist "%JORAM_HOME%\samples\bin\clean.bat" goto nokHome
afreyssin's avatar
afreyssin committed
21 22 23 24 25 26 27 28 29 30 31 32

set RUN_DIR=%JORAM_HOME%\samples\run

echo == Cleaning the persistence directories and configuration settings ==
rmdir /s /q %RUN_DIR%
goto end
:nokHome
echo The JORAM_HOME environment variable is not defined correctly
echo This environment variable is needed to run this program
goto end

:end