This is the mail archive of the
mailing list for the Cygwin project.
Re: Making Unix like paths work when using java program from Cygwin
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"
$ 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.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple