[Yanel-commits] rev 23633 - public/yanel/trunk

donat at wyona.com donat at wyona.com
Tue Apr 10 09:29:51 CEST 2007


Author: donat
Date: 2007-04-10 09:29:33 +0200 (Tue, 10 Apr 2007)
New Revision: 23633

Added:
   public/yanel/trunk/start-yanel.bat
   public/yanel/trunk/stop-yanel.bat
Log:
make it simple for Windows Users ;-)

Added: public/yanel/trunk/start-yanel.bat
===================================================================
--- public/yanel/trunk/start-yanel.bat	2007-04-09 14:38:27 UTC (rev 23632)
+++ public/yanel/trunk/start-yanel.bat	2007-04-10 07:29:33 UTC (rev 23633)
@@ -0,0 +1,21 @@
+ at echo off
+
+echo "Start Yanel Webapp ..."
+
+:: Check if JAVA_HOME is set or goto end
+if not "%JAVA_HOME%" == "" goto gotJavaHome
+echo You must set JAVA_HOME to point at your Java Development Kit installation
+goto end
+:gotJavaHome
+
+rem ----- Ignore system ANT_HOME variable
+set ORIGINAL_ANT_HOME=%ANT_HOME%
+set ANT_HOME=tools\apache-ant-1.6.5
+
+call %ANT_HOME%\bin\ant -version
+
+%ANT_HOME%\bin\ant -f src/build/build.xml start-tomcat
+
+rem ----- Restore ANT_HOME
+set ANT_HOME=%ORIGINAL_ANT_HOME%
+set ORIGINAL_ANT_HOME=
\ No newline at end of file

Added: public/yanel/trunk/stop-yanel.bat
===================================================================
--- public/yanel/trunk/stop-yanel.bat	2007-04-09 14:38:27 UTC (rev 23632)
+++ public/yanel/trunk/stop-yanel.bat	2007-04-10 07:29:33 UTC (rev 23633)
@@ -0,0 +1,21 @@
+ at echo off
+
+echo "Stop Yanel Webapp ..."
+
+:: Check if JAVA_HOME is set or goto end
+if not "%JAVA_HOME%" == "" goto gotJavaHome
+echo You must set JAVA_HOME to point at your Java Development Kit installation
+goto end
+:gotJavaHome
+
+rem ----- Ignore system ANT_HOME variable
+set ORIGINAL_ANT_HOME=%ANT_HOME%
+set ANT_HOME=tools\apache-ant-1.6.5
+
+call %ANT_HOME%\bin\ant -version
+
+%ANT_HOME%\bin\ant -f src/build/build.xml stop-tomcat
+
+rem ----- Restore ANT_HOME
+set ANT_HOME=%ORIGINAL_ANT_HOME%
+set ORIGINAL_ANT_HOME=
\ No newline at end of file




More information about the Yanel-commits mailing list