2669 |
07 May 08 |
olle |
@echo off |
2669 |
07 May 08 |
olle |
rem |
2669 |
07 May 08 |
olle |
rem $Id: proteios_ftp_server.bat.in 2595 2008-04-07 11:30:16Z olle $ |
2669 |
07 May 08 |
olle |
rem |
2669 |
07 May 08 |
olle |
rem Copyright (C) 2006 Olle Mansson |
2669 |
07 May 08 |
olle |
rem Copyright (C) 2007 Jari Hakkinen, Gregory Vincic |
2669 |
07 May 08 |
olle |
rem |
2669 |
07 May 08 |
olle |
rem Files are copyright by their respective authors. The contributions to |
2669 |
07 May 08 |
olle |
rem files where copyright is not explicitly stated can be traced with the |
2669 |
07 May 08 |
olle |
rem source code revision system. |
2669 |
07 May 08 |
olle |
rem |
2669 |
07 May 08 |
olle |
rem This file is part of Proteios. |
2669 |
07 May 08 |
olle |
rem Available at http://www.proteios.org/ |
2669 |
07 May 08 |
olle |
rem |
2669 |
07 May 08 |
olle |
rem Proteios is free software; you can redistribute it and/or |
2669 |
07 May 08 |
olle |
rem modify it under the terms of the GNU General Public License |
2669 |
07 May 08 |
olle |
rem as published by the Free Software Foundation; either version 2 |
2669 |
07 May 08 |
olle |
rem of the License, or (at your option) any later version. |
2669 |
07 May 08 |
olle |
rem |
2669 |
07 May 08 |
olle |
rem Proteios is distributed in the hope that it will be useful, |
2669 |
07 May 08 |
olle |
rem but WITHOUT ANY WARRANTY; without even the implied warranty of |
2669 |
07 May 08 |
olle |
rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
2669 |
07 May 08 |
olle |
rem GNU General Public License for more details. |
2669 |
07 May 08 |
olle |
rem |
2669 |
07 May 08 |
olle |
rem You should have received a copy of the GNU General Public License |
2669 |
07 May 08 |
olle |
rem along with this program; if not, write to the Free Software |
2669 |
07 May 08 |
olle |
rem Foundation, Inc., 59 Temple Place - Suite 330, |
2669 |
07 May 08 |
olle |
rem Boston, MA 02111-1307, USA. |
2669 |
07 May 08 |
olle |
29 |
|
2669 |
07 May 08 |
olle |
rem proteios_ftp_server.bat |
2669 |
07 May 08 |
olle |
rem |
2669 |
07 May 08 |
olle |
rem Usage: proteios_ftp_server.bat start|-stop [-pXX = Start/stop FTP server on port XX] |
2669 |
07 May 08 |
olle |
rem Example: proteios_ftp_server.bat -start (start ftp server on default port) |
2669 |
07 May 08 |
olle |
rem proteios_ftp_server.bat -start -p1234 (start ftp server on port 1234) |
2669 |
07 May 08 |
olle |
rem proteios_ftp_server.bat -stop (stop ftp server on default port) |
2669 |
07 May 08 |
olle |
rem proteios_ftp_server.bat -stop -p1234 (stop ftp server on port 1234) |
2669 |
07 May 08 |
olle |
rem proteios_ftp_server.bat (usage string printed) |
2669 |
07 May 08 |
olle |
rem |
2669 |
07 May 08 |
olle |
39 |
|
2669 |
07 May 08 |
olle |
rem |
2669 |
07 May 08 |
olle |
rem Examples of Tomcat installation directories: |
2669 |
07 May 08 |
olle |
rem (Windows English) tomcat_install_dir=c:\Program Files\Tomcat |
2669 |
07 May 08 |
olle |
rem (Windows Swedish) tomcat_install_dir=c:\Program\Tomcat |
2669 |
07 May 08 |
olle |
rem |
2669 |
07 May 08 |
olle |
45 |
|
2669 |
07 May 08 |
olle |
rem |
2669 |
07 May 08 |
olle |
rem Tomcat installation directory |
2669 |
07 May 08 |
olle |
rem |
2669 |
07 May 08 |
olle |
set tomcat_install_dir=__CATALINA_HOME__ |
2669 |
07 May 08 |
olle |
rem |
2669 |
07 May 08 |
olle |
rem When testing if a marker string has been replaced with |
2669 |
07 May 08 |
olle |
rem another value, it is important that the test string |
2669 |
07 May 08 |
olle |
rem has not been replaced by the replacement procedure. |
2669 |
07 May 08 |
olle |
rem To avoid this problem, the marker string to test for |
2669 |
07 May 08 |
olle |
rem is stored as two separate strings. |
2669 |
07 May 08 |
olle |
rem |
2669 |
07 May 08 |
olle |
set marker1=__CATALINA |
2669 |
07 May 08 |
olle |
set marker2=_HOME__ |
2669 |
07 May 08 |
olle |
if not "%tomcat_install_dir%"=="%marker1%%marker2%" goto tomcat_dir_1 |
2669 |
07 May 08 |
olle |
echo Set Tomcat installation directory in this bat file! |
2669 |
07 May 08 |
olle |
goto end |
2669 |
07 May 08 |
olle |
:tomcat_dir_1 |
2669 |
07 May 08 |
olle |
63 |
|
2791 |
18 Aug 08 |
olle |
set inst_dir=%tomcat_install_dir%\webapps\proteios |
2669 |
07 May 08 |
olle |
65 |
|
2669 |
07 May 08 |
olle |
rem |
2669 |
07 May 08 |
olle |
rem Directory for Proteios FTP Server lock file |
2669 |
07 May 08 |
olle |
rem |
2791 |
18 Aug 08 |
olle |
set temp_dir=%inst_dir% |
2669 |
07 May 08 |
olle |
70 |
|
2669 |
07 May 08 |
olle |
rem |
2669 |
07 May 08 |
olle |
rem Debug output |
2669 |
07 May 08 |
olle |
rem |
2669 |
07 May 08 |
olle |
echo tomcat_install_dir = "%tomcat_install_dir%" |
2669 |
07 May 08 |
olle |
echo inst_dir = "%inst_dir%" |
2669 |
07 May 08 |
olle |
echo temp_dir = "%temp_dir%" |
2669 |
07 May 08 |
olle |
echo argument-1 = "%1" |
2669 |
07 May 08 |
olle |
echo argument-2 = "%2" |
2669 |
07 May 08 |
olle |
rem |
2669 |
07 May 08 |
olle |
rem Check input |
2669 |
07 May 08 |
olle |
rem |
2669 |
07 May 08 |
olle |
if not "%tomcat_install_dir%"=="" goto tomcat_dir_ok |
2669 |
07 May 08 |
olle |
echo Set Tomcat installation directory in this bat file! |
2669 |
07 May 08 |
olle |
goto end |
2669 |
07 May 08 |
olle |
:tomcat_dir_ok |
2669 |
07 May 08 |
olle |
if not "%temp_dir%"=="" goto temp_dir_ok |
2669 |
07 May 08 |
olle |
echo Set directory for temporary files in Proteios in this bat file! |
2669 |
07 May 08 |
olle |
goto end |
2669 |
07 May 08 |
olle |
:temp_dir_ok |
2669 |
07 May 08 |
olle |
rem |
2669 |
07 May 08 |
olle |
rem At least one argument must be either "-start" or "-stop" |
2669 |
07 May 08 |
olle |
rem |
2669 |
07 May 08 |
olle |
if "%1"=="-start" goto arguments_ok |
2669 |
07 May 08 |
olle |
if "%1"=="-stop" goto arguments_ok |
2669 |
07 May 08 |
olle |
if "%2"=="-start" goto arguments_ok |
2669 |
07 May 08 |
olle |
if "%2"=="-stop" goto arguments_ok |
2669 |
07 May 08 |
olle |
echo Usage: proteios_ftp_server.bat -start [-pXX = Start FTP server on port XX] |
2669 |
07 May 08 |
olle |
echo Usage: proteios_ftp_server.bat -stop [-pXX = Stop FTP server on port XX] |
2791 |
18 Aug 08 |
olle |
goto end |
2669 |
07 May 08 |
olle |
:arguments_ok |
2669 |
07 May 08 |
olle |
101 |
|
2669 |
07 May 08 |
olle |
rem |
2669 |
07 May 08 |
olle |
rem Execute Proteios FTP Server command |
2669 |
07 May 08 |
olle |
rem |
4633 |
23 Nov 17 |
fredrik |
start "" javaw -Xmx64M -cp "%inst_dir%"\WEB-INF\lib\backport-util-concurrent.jar;"%inst_dir%"\WEB-INF\lib\log4j-1.2.17.jar;"%inst_dir%"\WEB-INF\lib\hibernate3.jar;"%inst_dir%"\WEB-INF\lib\dom4j-1.6.1.jar;"%inst_dir%"\WEB-INF\lib\commons-logging-1.0.4.jar;"%inst_dir%"\WEB-INF\lib\commons-collections-3.1.jar;"%inst_dir%"\WEB-INF\lib\cglib-2.2.jar;"%inst_dir%"\WEB-INF\lib\mysql-connector-java-5.1.44-bin.jar;"%inst_dir%"\WEB-INF\lib\c3p0-0.9.1.jar;"%inst_dir%"\WEB-INF\lib\ehcache-core-2.6.3.jar;"%inst_dir%"\WEB-INF\lib\jta-1.1.jar;"%inst_dir%"\WEB-INF\lib\jaxen-1.1-beta-7.jar;"%inst_dir%"\WEB-INF\lib\antlr-2.7.7.jar;"%inst_dir%"\WEB-INF\lib\asm-attrs.jar;"%inst_dir%"\WEB-INF\lib\asm.jar;"%inst_dir%"\WEB-INF\lib\wls_stax.jar;"%inst_dir%"\WEB-INF\lib\sjsxp.jar;"%inst_dir%"\WEB-INF\lib\jsr173_1.0_ri.jar;"%inst_dir%"\WEB-INF\lib\slf4j-api-1.6.4.jar;"%inst_dir%"\WEB-INF\lib\slf4j-log4j12-1.6.4.jar;"%inst_dir%"\WEB-INF\lib\javassist-3.12.0.GA.jar;"%inst_dir%"\WEB-INF\lib\hibernate-jpa-2.0-api-1.0.1.Final.jar;"%inst_dir%"\WEB-INF\classes;"%inst_dir%"\WEB-INF\lib\proteios_core.jar;"%inst_dir%"\WEB-INF\lib\proteios_ftpserver.jar se.lu.thep.coreftpd.ProteiosFTPServerControl -t"%temp_dir%" %1 %2 |
2669 |
07 May 08 |
olle |
:end |