MCPcopy Create free account
hub / github.com/apache/solr / printFileContents

Function printFileContents

dev-tools/scripts/smokeTestRelease.py:494–509  ·  view source on GitHub ↗
(fileName)

Source from the content-addressed store, hash-verified

492
493
494def unix2win(matchobj):
495 if matchobj.group(1) is not None: return cygwinWindowsRoot + matchobj.group()
496 if matchobj.group(2) is not None: return '"%s%s' % (cygwinWindowsRoot, matchobj.group().lstrip('"'))
497 if matchobj.group(3) is not None: return "'%s%s" % (cygwinWindowsRoot, matchobj.group().lstrip("'"))
498 return matchobj.group()
499
500
501def cygwinifyPaths(command):
502 # The problem: Native Windows applications running under Cygwin can't
503 # handle Cygwin's Unix-style paths. However, environment variable
504 # values are automatically converted, so only paths outside of
505 # environment variable values should be converted to Windows paths.
506 # Assumption: all paths will be absolute.
507 if '; gradlew ' in command: command = reUnixPath.sub(unix2win, command)
508 return command
509
510
511def printFileContents(fileName):
512

Callers 1

runFunction · 0.85

Calls 3

encodeMethod · 0.80
readMethod · 0.65
openMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…