svn commit: r533249 - /xml/xindice/trunk/bin/xindice_rebuild.bat

[email protected]
Newsgroups gmane.text.xml.xindice.devel
Message-ID <[email protected]>
Author: vgritsenko
Date: Fri Apr 27 15:56:47 2007
New Revision: 533249

URL: http://svn.apache.org/viewvc?view=rev&rev=533249
Log:
create log dir, typo (bug #42272)

Modified:
    xml/xindice/trunk/bin/xindice_rebuild.bat

Modified: xml/xindice/trunk/bin/xindice_rebuild.bat
URL: http://svn.apache.org/viewvc/xml/xindice/trunk/bin/xindice_rebuild.bat?view=diff&rev=533249&r1=533248&r2=533249
==============================================================================
--- xml/xindice/trunk/bin/xindice_rebuild.bat (original)
+++ xml/xindice/trunk/bin/xindice_rebuild.bat Fri Apr 27 15:56:47 2007
@@ -81,8 +81,8 @@
 )
 
 :checkdir
-echo Checking locak backup %_LOCAL_BACKUP%
-if exist %_LOCAL_BACKUP% goto backup-error	
+echo Checking local backup %_LOCAL_BACKUP%
+if exist %_LOCAL_BACKUP% goto backup-error
 xcopy /E %2 %LOCAL_BACKUP%
 
 
@@ -95,18 +95,21 @@
 goto LOOP
 :DONE
 
-:: ----- Start Command Line Tool -----------------------------------------------
+if not exist %_XINDICE_HOME%\logs mkdir %_XINDICE_HOME%\logs
+
 
-%_JAVACMD% -Xms16m -Xmx128m -Dorg.apache.commons.logging.Log=%_LOGGER% -Dorg.apache.commons.logging.simplelog.defaultlog=%_LOGLEVEL% -cp %LOCALCLASSPATH% org.apache.xindice.tools.DatabaseRebuild %_CL% 
+:: ----- Start Command Line Tool -----------------------------------------------
 
+%_JAVACMD% -Xms16m -Xmx128m -Dorg.apache.commons.logging.Log=%_LOGGER% -Dorg.apache.commons.logging.simplelog.defaultlog=%_LOGLEVEL% -cp %LOCALCLASSPATH% org.apache.xindice.tools.DatabaseRebuild %_CL% 2>>"%_XINDICE_HOME%"\logs\rebuild.log
 
 goto end
 
+
 ::------ BACKUP ALREADY EXISTS -------------------------------------------------
 
 :backup-error
 
- echo "Cannot back up a database. %_LOCAL_BACKUP% already exists"
+echo "Cannot back up a database. %_LOCAL_BACKUP% already exists"
 
 :: ----- End -------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.