Title: [2615] trunk/openejb1/modules/core/src/bin/openejb.bat: Fixed the Windows support to run anywhere.
Revision
2615
Author
jcscoobyrs
Date
2006-04-19 16:57:51 -0400 (Wed, 19 Apr 2006)

Log Message

Fixed the Windows support to run anywhere. Previous fix only worked with relative paths.  This fix works with any path.

Modified Paths

Diff

Modified: trunk/openejb1/modules/core/src/bin/openejb.bat (2614 => 2615)

--- trunk/openejb1/modules/core/src/bin/openejb.bat	2006-04-19 19:01:42 UTC (rev 2614)
+++ trunk/openejb1/modules/core/src/bin/openejb.bat	2006-04-19 20:57:51 UTC (rev 2615)
@@ -18,7 +18,11 @@
 
 SETLOCAL
 
-SET COMMAND=%CD%/%0
+SET CWD=%CD%
+SET COMMAND=%0
+
+IF EXIST %CWD%/%COMMAND% SET COMMAND=%CWD%/%COMMAND%
+
 SET OPENEJB_HOME=%COMMAND:~0,-16%
 
 echo OPENEJB_HOME=%OPENEJB_HOME%

Reply via email to