delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/05/18/07:51:57

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-5.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_YG
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <33869106.post@talk.nabble.com>
References: <33869106 DOT post AT talk DOT nabble DOT com>
Date: Fri, 18 May 2012 07:51:15 -0400
Message-ID: <CA+sc5mmXc3BFz-48FGV16RVh570c+SvaUZs_bh6dtM9Qy+VbTA@mail.gmail.com>
Subject: Re: Making Unix like paths work when using java program from Cygwin
From: Earnie Boyd <earnie AT users DOT sourceforge DOT net>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Fri, May 18, 2012 at 4:56 AM, himoundary wrote:
>
> I am working in a team where everyone else has a Linux/Mac OS X workstation,
> but I have a windows workstation. Our project uses a shell script and a java
> program to automate some deployment/setup etc, which needs to create some
> directories of the sort /ABC/XYZ.
> Obviously such paths are not valid in Windows.
>

You spread falsities about Windows.  Try the following in cmd.exe and
you will be in a shock for your life.

mkdir /ABC/XYZ

> I was hoping if I executed these scripts from within a Cygwin terminal, the
> problem might be solved (with /ABC/XYZ mapping to C:\cygwin\ABC\XYZ
>
> While the issue gets solved for the shell scripts, it does not for the java
> program. I realize this happens because the Cygwin executes the very same
> java.exe program which is installed on Windows (even though I selected
> 'java' related packages for installation while installing Cygwin). Is there
> a way to get the equivalent of the "native" javac and java programs one
> would find on a typical Linux workstation.
>

You probably want to use the capabilities of cygpath for this and
modify your script.

-- 
Earnie
-- https://sites.google.com/site/earnieboyd

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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