delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-5.2 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: | <1337356203.42647.YahooMailClassic@web28609.mail.ukl.yahoo.com> |
References: | <CA+sc5mkO1gqnonLjddwv27j0J-sg6y19cWBbjd4WobdRxVvyMQ AT mail DOT gmail DOT com> <1337356203 DOT 42647 DOT YahooMailClassic AT web28609 DOT mail DOT ukl DOT yahoo DOT com> |
Date: | Fri, 18 May 2012 12:26:51 -0400 |
Message-ID: | <CA+sc5mkYXAQ21w_P25arXL=mCxg9J3Pkt5sUjTcoiTVoYG0Yww@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 |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id q4IGRN01013297 |
On Fri, May 18, 2012 at 11:50 AM, Marilo wrote: > > Still use /cygdrive/c in the shell script. > It is possible but the OP stated that he mounted the directory to /ABC/XYZ. > I wasn't suggesting using /cygdrive/c in his java program. Â His java program is not so much a cygwin issue, as his shell script is. Â If his java program has file paths that need amending, then since you point out that a cygwin program could be used to help convert the paths in his java program, then, I see, the java program could be relevant to cygwin in that sense. Note java wouldn't understand "c:\blah\a.txt" Â it could have "c:\\blah\a.txt" though. Â A search and replace might be easier though, possibly using regex. > The issue is conversion of POSIX to WINDOWS paths for the "native" program. The OP needs to give the native java a Windows path but it is getting the POSIX path and not able to find it. > How do you get cygpath to do make /v into c:\v ? > $ cygpath -aw "/v" > C:\cygwin\v > $ cygpath -aw "/cygdrive/c/v" or mount c:/v as /v. > and not that i'm suggesting it but out of curiousity, can cygpath take a file and convert any linux paths in it to windows paths? how? > > and if it can't then i'm not sure its use for this. http://cygwin.com/faq/faq-nochunks.html#faq.using.converting-paths -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |