2794 |
19 Aug 08 |
olle |
@echo off |
2794 |
19 Aug 08 |
olle |
rem |
2794 |
19 Aug 08 |
olle |
rem $Id: proteios_ftp_server_start.bat.in 2595 2008-04-07 11:30:16Z olle $ |
2794 |
19 Aug 08 |
olle |
rem |
2794 |
19 Aug 08 |
olle |
rem Copyright (C) 2006 Olle Mansson |
2794 |
19 Aug 08 |
olle |
rem Copyright (C) 2007 Jari Hakkinen, Gregory Vincic |
2794 |
19 Aug 08 |
olle |
rem |
2794 |
19 Aug 08 |
olle |
rem Files are copyright by their respective authors. The contributions to |
2794 |
19 Aug 08 |
olle |
rem files where copyright is not explicitly stated can be traced with the |
2794 |
19 Aug 08 |
olle |
rem source code revision system. |
2794 |
19 Aug 08 |
olle |
rem |
2794 |
19 Aug 08 |
olle |
rem This file is part of Proteios. |
2794 |
19 Aug 08 |
olle |
rem Available at http://www.proteios.org/ |
2794 |
19 Aug 08 |
olle |
rem |
2794 |
19 Aug 08 |
olle |
rem Proteios is free software; you can redistribute it and/or |
2794 |
19 Aug 08 |
olle |
rem modify it under the terms of the GNU General Public License |
2794 |
19 Aug 08 |
olle |
rem as published by the Free Software Foundation; either version 2 |
2794 |
19 Aug 08 |
olle |
rem of the License, or (at your option) any later version. |
2794 |
19 Aug 08 |
olle |
rem |
2794 |
19 Aug 08 |
olle |
rem Proteios is distributed in the hope that it will be useful, |
2794 |
19 Aug 08 |
olle |
rem but WITHOUT ANY WARRANTY; without even the implied warranty of |
2794 |
19 Aug 08 |
olle |
rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
2794 |
19 Aug 08 |
olle |
rem GNU General Public License for more details. |
2794 |
19 Aug 08 |
olle |
rem |
2794 |
19 Aug 08 |
olle |
rem You should have received a copy of the GNU General Public License |
2794 |
19 Aug 08 |
olle |
rem along with this program; if not, write to the Free Software |
2794 |
19 Aug 08 |
olle |
rem Foundation, Inc., 59 Temple Place - Suite 330, |
2794 |
19 Aug 08 |
olle |
rem Boston, MA 02111-1307, USA. |
2794 |
19 Aug 08 |
olle |
29 |
|
2794 |
19 Aug 08 |
olle |
rem proteios_ftp_server_start.bat |
2794 |
19 Aug 08 |
olle |
rem |
2794 |
19 Aug 08 |
olle |
rem Usage: Double-click on proteios_ftp_server_start.bat to start Proteios FTP server |
2794 |
19 Aug 08 |
olle |
rem |
2794 |
19 Aug 08 |
olle |
34 |
|
2794 |
19 Aug 08 |
olle |
rem |
2794 |
19 Aug 08 |
olle |
rem Examples of Tomcat installation directories: |
2794 |
19 Aug 08 |
olle |
rem (Windows English) tomcat_install_dir=c:\Program Files\Tomcat |
2794 |
19 Aug 08 |
olle |
rem (Windows Swedish) tomcat_install_dir=c:\Program\Tomcat |
2794 |
19 Aug 08 |
olle |
rem |
2794 |
19 Aug 08 |
olle |
40 |
|
2794 |
19 Aug 08 |
olle |
rem |
2794 |
19 Aug 08 |
olle |
rem Tomcat installation directory |
2794 |
19 Aug 08 |
olle |
rem |
2794 |
19 Aug 08 |
olle |
set tomcat_install_dir=__CATALINA_HOME__ |
2794 |
19 Aug 08 |
olle |
45 |
|
2794 |
19 Aug 08 |
olle |
rem |
2794 |
19 Aug 08 |
olle |
rem FTP control port (if not set, default is used) |
2794 |
19 Aug 08 |
olle |
rem |
2794 |
19 Aug 08 |
olle |
set control_port= |
2794 |
19 Aug 08 |
olle |
50 |
|
2794 |
19 Aug 08 |
olle |
rem |
2794 |
19 Aug 08 |
olle |
rem Debug output file - leave blank for no output |
2794 |
19 Aug 08 |
olle |
rem |
2794 |
19 Aug 08 |
olle |
rem set debug_file=proteios_ftp_server_start_debug_output.txt |
2794 |
19 Aug 08 |
olle |
set debug_file=proteios_ftp_server_start_debug_output.txt |
2794 |
19 Aug 08 |
olle |
56 |
|
2794 |
19 Aug 08 |
olle |
rem ------------------------------------------------------------ |
2794 |
19 Aug 08 |
olle |
rem End of configurations - do not make changes below this point |
2794 |
19 Aug 08 |
olle |
rem ------------------------------------------------------------ |
2794 |
19 Aug 08 |
olle |
60 |
|
2794 |
19 Aug 08 |
olle |
rem |
2794 |
19 Aug 08 |
olle |
rem FTP control port (if not set, default is used) |
2794 |
19 Aug 08 |
olle |
rem |
2794 |
19 Aug 08 |
olle |
set start_stop_arg=-start |
2794 |
19 Aug 08 |
olle |
65 |
|
2794 |
19 Aug 08 |
olle |
rem |
2794 |
19 Aug 08 |
olle |
rem When testing if a marker string has been replaced with |
2794 |
19 Aug 08 |
olle |
rem another value, it is important that the test string |
2794 |
19 Aug 08 |
olle |
rem has not been replaced by the replacement procedure. |
2794 |
19 Aug 08 |
olle |
rem To avoid this problem, the marker string to test for |
2794 |
19 Aug 08 |
olle |
rem is stored as two separate strings. |
2794 |
19 Aug 08 |
olle |
rem |
2794 |
19 Aug 08 |
olle |
set marker1=__CATALINA |
2794 |
19 Aug 08 |
olle |
set marker2=_HOME__ |
2794 |
19 Aug 08 |
olle |
if not "%tomcat_install_dir%"=="%marker1%%marker2%" goto tomcat_dir_1 |
2794 |
19 Aug 08 |
olle |
echo Set Tomcat installation directory in this bat file! |
2794 |
19 Aug 08 |
olle |
goto end |
2794 |
19 Aug 08 |
olle |
:tomcat_dir_1 |
2794 |
19 Aug 08 |
olle |
79 |
|
2794 |
19 Aug 08 |
olle |
set inst_dir=%tomcat_install_dir%\webapps\proteios |
2794 |
19 Aug 08 |
olle |
81 |
|
2794 |
19 Aug 08 |
olle |
rem |
2794 |
19 Aug 08 |
olle |
rem Directory for Proteios FTP Server lock file |
2794 |
19 Aug 08 |
olle |
rem |
2794 |
19 Aug 08 |
olle |
set temp_dir=%inst_dir% |
2794 |
19 Aug 08 |
olle |
86 |
|
2794 |
19 Aug 08 |
olle |
rem |
2794 |
19 Aug 08 |
olle |
rem FTP control port (if not set, default is used) |
2794 |
19 Aug 08 |
olle |
rem |
2794 |
19 Aug 08 |
olle |
set control_port_arg= |
2794 |
19 Aug 08 |
olle |
if "%control_port%"=="" goto control_port_end |
2794 |
19 Aug 08 |
olle |
set control_port_arg=-p%control_port% |
2794 |
19 Aug 08 |
olle |
:control_port_end |
2794 |
19 Aug 08 |
olle |
94 |
|
2794 |
19 Aug 08 |
olle |
rem |
2794 |
19 Aug 08 |
olle |
rem Debug output |
2794 |
19 Aug 08 |
olle |
rem |
2794 |
19 Aug 08 |
olle |
if "%debug_file%"=="" goto debug_end |
2794 |
19 Aug 08 |
olle |
echo tomcat_install_dir = "%tomcat_install_dir%" > %debug_file% |
2794 |
19 Aug 08 |
olle |
echo inst_dir = "%inst_dir%" >> %debug_file% |
2794 |
19 Aug 08 |
olle |
echo temp_dir = "%temp_dir%" >> %debug_file% |
2794 |
19 Aug 08 |
olle |
echo control_port = "%control_port%" >> %debug_file% |
2794 |
19 Aug 08 |
olle |
echo start_stop_arg = "%start_stop_arg%" >> %debug_file% |
2794 |
19 Aug 08 |
olle |
echo control_port_arg = "%control_port_arg%" >> %debug_file% |
2794 |
19 Aug 08 |
olle |
:debug_end |
2794 |
19 Aug 08 |
olle |
106 |
|
2794 |
19 Aug 08 |
olle |
rem |
2794 |
19 Aug 08 |
olle |
rem Check input |
2794 |
19 Aug 08 |
olle |
rem |
2794 |
19 Aug 08 |
olle |
if not "%tomcat_install_dir%"=="" goto tomcat_dir_ok |
2794 |
19 Aug 08 |
olle |
echo Set Tomcat installation directory in this bat file! |
2794 |
19 Aug 08 |
olle |
goto end |
2794 |
19 Aug 08 |
olle |
:tomcat_dir_ok |
2794 |
19 Aug 08 |
olle |
if not "%temp_dir%"=="" goto temp_dir_ok |
2794 |
19 Aug 08 |
olle |
echo Set directory for temporary files in Proteios in this bat file! |
2794 |
19 Aug 08 |
olle |
goto end |
2794 |
19 Aug 08 |
olle |
:temp_dir_ok |
2794 |
19 Aug 08 |
olle |
118 |
|
2794 |
19 Aug 08 |
olle |
rem |
2794 |
19 Aug 08 |
olle |
rem Execute Proteios FTP Server command |
2794 |
19 Aug 08 |
olle |
rem |
4633 |
23 Nov 17 |
fredrik |
start "" javaw -Xmx64M -cp "%inst_dir%"\WEB-INF\lib\log4j-1.2.15.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.1.3.jar;"%inst_dir%"\WEB-INF\lib\mysql-connector-java-5.1.44-bin.jar;"%inst_dir%"\WEB-INF\lib\c3p0-0.9.0.jar;"%inst_dir%"\WEB-INF\lib\ehcache-1.2.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.6.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.5.8.jar;"%inst_dir%"\WEB-INF\lib\slf4j-log4j12-1.5.8.jar;"%inst_dir%"\WEB-INF\lib\javassist-3.9.0.GA.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%" %start_stop_arg% %control_port_arg% |
2794 |
19 Aug 08 |
olle |
:end |