Home
last modified time | relevance | path

Searched refs:rel_path (Results 1 – 2 of 2) sorted by relevance

/libcore/tools/upstream/
Dupstream-diff65 def get_path_type(rel_path): argument
66 ext = os.path.splitext(rel_path)[-1]
76 def normalize_java_path(rel_path): argument
77 if re.match('.+\\.java$', rel_path):
79 return rel_path
81 if '/' not in rel_path:
83 rel_path = rel_path.replace('.', '/')
85 if any(c.isupper() for c in rel_path):
93 rel_path += '.java'
94 elif rel_path[-1] != '/':
[all …]
Dmerge-from-upstream117 def get_upstream_path(version, rel_path): argument
119 return '{}/{}/{}'.format(upstreams, version, rel_path)
122 def get_ojluni_path(rel_path): argument
125 android_build_top, rel_path)
252 def __init__(self, repo_dir, rel_path, resolve_dir): argument
257 self.rel_path = rel_path
279 full_path = get_upstream_path(version, self.rel_path)
292 full_path = get_ojluni_path(self.rel_path)
316 dst_path = get_ojluni_path(self.rel_path)
318 src_path += '/' + os.path.basename(self.rel_path)
[all …]