You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Boon Hian Tek <bo...@verizon.net> on 2002/07/12 21:00:07 UTC

Cygwin Path for Tomcat 4.0.4

Hi,

I am not sure if everyone else's configuration for cygwin is different.
But I had to change the catalina.sh so that it converts the
CATALINA_BASE to windows format path before it will work.

<not work for me>
# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
  JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
  CATALINA_HOME=`cygpath --path --windows "$CATALINA_HOME"`
  CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
  JSSE_HOME=`cygpath --path --windows "$JSSE_HOME"`
fi
</not work for me>

<works now>
# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
  JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
  CATALINA_HOME=`cygpath --path --windows "$CATALINA_HOME"`
  CATALINA_BASE=`cygpath --path --windows "$CATALINA_BASE"`
  CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
  JSSE_HOME=`cygpath --path --windows "$JSSE_HOME"`
fi
<works now>

Regards,

Boon

Re: Cygwin Path for Tomcat 4.0.4

Posted by Patrick Luby <pa...@sun.com>.
Boon,

I have committed your patch to both the HEAD and 4.0 branch of Tomcat.

Patrick

Boon Hian Tek wrote:
> Hi,
> 
> I am not sure if everyone else's configuration for cygwin is different.
> But I had to change the catalina.sh so that it converts the
> CATALINA_BASE to windows format path before it will work.
> 
> <not work for me>
> # For Cygwin, switch paths to Windows format before running java
> if $cygwin; then
>   JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
>   CATALINA_HOME=`cygpath --path --windows "$CATALINA_HOME"`
>   CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
>   JSSE_HOME=`cygpath --path --windows "$JSSE_HOME"`
> fi
> </not work for me>
> 
> <works now>
> # For Cygwin, switch paths to Windows format before running java
> if $cygwin; then
>   JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
>   CATALINA_HOME=`cygpath --path --windows "$CATALINA_HOME"`
>   CATALINA_BASE=`cygpath --path --windows "$CATALINA_BASE"`
>   CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
>   JSSE_HOME=`cygpath --path --windows "$JSSE_HOME"`
> fi
> <works now>
> 
> Regards,
> 
> Boon
> 


-- 
________________________________________________________________
Patrick Luby                     Email: patrick.luby@sun.com
Sun Microsystems                         Phone: 408-276-7471
901 San Antonio Road, USCA14-303
Palo Alto, CA 94303-4900
________________________________________________________________


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>