Lines Matching refs:path_segments
24 def _segment_idx(path_segments):
28 path_segments: A list of strings, where each string is the segment of a
35 if _path.is_absolute(path_segments[0]):
36 log.error("path must not be absolute: %s" % _path.join(path_segments))
39 for idx, segment in enumerate(path_segments):
46 is_src = path_segments[root_idx] == "src"
50 for idx in range(root_idx + 1, len(path_segments) - 2):
51 segment = path_segments[idx]
53 next_segment = path_segments[idx + 1]
60 if check_maven_idx >= 0 and check_maven_idx + 2 < len(path_segments):
61 next_segment = path_segments[check_maven_idx + 1]
63 next_segment = path_segments[check_maven_idx + 2]
82 path_segments = _path.split(path.partition(":")[0])
83 java_idx = _segment_idx(path_segments)
87 return ".".join(path_segments[java_idx + 1:])
139 path_segments = _path.split(path.partition(":")[0])
140 java_idx = _segment_idx(path_segments)
144 return _path.join(path_segments[0:java_idx + 1])