tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 7827] New: - catalina.sh can't work in Cygwin environment
Date Mon, 08 Apr 2002 07:42:59 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7827>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7827

catalina.sh can't work in Cygwin environment

           Summary: catalina.sh can't work in Cygwin environment
           Product: Tomcat 4
           Version: 4.0.4 Beta 2
          Platform: PC
        OS/Version: Windows 9x
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: kare@highway.ne.jp


In Cygwin environment, catalina.sh cannot work.
This reason is that CATALINA_BASE and CATALINA_TMPDIR isnot set appropriately 
for cygwin.

If following patch applied to catalina.sh, this problem is fixed:

--- catalina.sh.orig	Wed Mar 27 03:12:50 2002
+++ catalina.sh	Thu Apr  4 15:08:26 2002
@@ -64,7 +64,9 @@
 # For Cygwin, ensure paths are in UNIX format before anything is touched
 if $cygwin; then
   [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
+  [ -n "$CATALINA_BASE" ] && CATALINA_BASE=`cygpath --unix "$CATALINA_BASE"`
   [ -n "$CATALINA_HOME" ] && CATALINA_HOME=`cygpath --unix "$CATALINA_HOME"`
+  [ -n "$CATALINA_TMPDIR" ] && CATALINA_TMPDIR=`cygpath --unix 
"$CATALINA_TMPDIR"`
   [ -n "$CLASSPATH" ] && CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
   [ -n "$JSSE_HOME" ] && JSSE_HOME=`cygpath --path --unix "$JSSE_HOME"`
 fi
@@ -97,7 +99,9 @@
 # For Cygwin, switch paths to Windows format before running java
 if $cygwin; then
   JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
+  CATALINA_BASE=`cygpath --path --windows "$CATALINA_BASE"`
   CATALINA_HOME=`cygpath --path --windows "$CATALINA_HOME"`
+  CATALINA_TMPDIR=`cygpath --path --windows "$CATALINA_TMPDIR"`
   CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
   JSSE_HOME=`cygpath --path --windows "$JSSE_HOME"`
 fi

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message