delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/01/29/23:47:36

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-Id: <4.3.1.2.20010129234124.022fde88@pop.ma.ultranet.com>
X-Sender: lhall AT pop DOT ma DOT ultranet DOT com
X-Mailer: QUALCOMM Windows Eudora Version 4.3.1
Date: Mon, 29 Jan 2001 23:42:21 -0500
To: CyberZombie <CyberZombie AT mediaone DOT net>, cygwin AT sourceware DOT cygnus DOT com
From: "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com>
Subject: Re: Cygwin and JVMs
Cc: Galen Boyer <galenboyer AT yahoo DOT com>
In-Reply-To: <4.3.1.2.20010129223710.0230fd00@pop.ma.ultranet.com>
References: <5 DOT 0 DOT 2 DOT 1 DOT 0 DOT 20010129200038 DOT 009e3780 AT pop3 DOT norton DOT antivirus>
<4 DOT 3 DOT 1 DOT 2 DOT 20010129151657 DOT 022fad28 AT pop DOT ma DOT ultranet DOT com>
<uae8a9lsa DOT fsf AT yahoo DOT com>
Mime-Version: 1.0

At 10:40 PM 1/29/2001, Larry Hall (RFK Partners, Inc) wrote:
>At 09:07 PM 1/29/2001, CyberZombie wrote:
> >At 03:18 PM 1/29/2001 -0500, Larry Hall (RFK Partners, Inc) wrote:
> >>At 02:54 PM 1/29/2001, Galen Boyer wrote:
> >> >How does one deal with the classpath's and other environmental
> >> >variables when porting scripts between windows and unix, using
> >> >the cygwin tools of course.
> >> >
> >> >For context, we are using weblogic, ejb, java, toplink and verve.
> >> >We right now have *.cmd files to compile and start the
> >> >application.  Is there a way to *.sh files executing in the
> >> >cygwin environment that can then be ported to the UNIX machine?
> >> >We keep having to deal with the classpath separators and
> >> >drive-letters right now and can't get one script for both
> >> >platforms.
> >>
> >>
> >>If you don't have source available to these components so that they can
> >>be built under Cygwin (thereby eliminating the need to use DOS style paths),
> >>you might find Cygwin's cygpath utility helpful.
> >
> >Try the following:
> >
> ># Convert a Cygwin CLASSPATH when running on Unix
> >
> >if [ -z "$CYGWIN" ]; then CLASSPATH=`echo $CLASSPATH | sed -e 's/;/:/g' -e 's|\\|/|g'`; fi
> >
> ># Convert a non-Cygwin CLASSPATH when running on Cygwin
> >
> >if [ -n "$CYGWIN" ]; then CLASSPATH=`echo $CLASSPATH | sed -e 's/:/;/g' -e 's|/|\\|g'`; fi
> >
> >Note that these don't take into account the DOS driveletter: paths...
>
>
>cygpath does handle DOS driveletter: paths.  Choice your own poison.;-)
                                               ^^^^^^^
                                    Ah, I meant choose.


Larry Hall                              lhall AT rfk DOT com
RFK Partners, Inc.                      http://www.rfk.com
118 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019