Skip to content

Under Cugwin, build.gradle shows isCygwin as false ans isWin as true #2

Description

@zosrothko

Hi

another issue on Cygwin: Current environment isWin = true, isCygwin = false

[FrancisANDRE@idefix cpp_gradle ]$uname -a
CYGWIN_NT-6.1-WOW idefix 2.5.2(0.297/5/3) 2016-06-23 14:27 i686 Cygwin

[FrancisANDRE@idefix cpp_gradle ]$c:/programfiles/gradle/bin/gradle
Current environment isWin = true, isCygwin = false
cygwinOrUnixRootDir = Z:\git\cpp_gradle
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use Task.doLast(Action) instead.
        at build_4wymg0rvw0bnwj0sgc2zdddtn.run(Z:\git\cpp_gradle\build.gradle:91)
:testToolkit
============================================================================
  Test separators
============================================================================
s                       = a/b\c
withWinSeparator(s)     = a\b\c
withUnixSeparator(s)    = a/b/c

============================================================================
  Test winPath() and unixPath()
============================================================================
s                         = a/b\c
unixPath(s) (cygwin only) = a/b/c
winPath(s) (cygwin only)  = a\b\c

s                         = /cygdrive/c/Program Files\a
unixPath(s) (cygwin only) = /cygdrive/c/Program Files/a
winPath(s) (cygwin only)  = C:\Program Files\a

s                         = .
unixPath(s) (cygwin only) = .
winPath(s) (cygwin only)  = .

s                         = /a\b/c
unixPath(s) (cygwin only) = /a/b/c
winPath(s) (cygwin only)  = C:\cygwin\a\b\c

s                         = C:\a/b\c
unixPath(s) (cygwin only) = /cygdrive/c/a/b/c
winPath(s) (cygwin only)  = C:\a\b\c

s                         = C:\a/Program Files\c
unixPath(s) (cygwin only) = /cygdrive/c/a/Program Files/c
winPath(s) (cygwin only)  = C:\a\Program Files\c

============================================================================
  Test winOrUnixPath() and cygwinOrUnixPath()
============================================================================
s                   = a/b/c
[UNDER UNIX]
winOrUnixPath(s)    = a/b/c
cygwinOrUnixPath(s) = a/b/c

s                   = /cygdrive/c/Program Files/a
[UNDER UNIX]
winOrUnixPath(s)    = /cygdrive/c/Program Files/a
cygwinOrUnixPath(s) = /cygdrive/c/Program Files/a

s                   = .
[UNDER UNIX]
winOrUnixPath(s)    = .
cygwinOrUnixPath(s) = .

============================================================================
  Test Jetty / Tomcat / Gradle file() method compatible file path
============================================================================
s               = /cygdrive/c/Program Files/a
[UNDER UNIX]
crossEnvPath(s) = /cygdrive/c/Program Files/a

============================================================================
  Some real tests
============================================================================
Original filename = Z:\git\cpp_gradle/build.gradle
Converted filename = Z:\git\cpp_gradle/build.gradle
This file length is 5028

BUILD SUCCESSFUL

Total time: 2.402 secs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions