• Home
  • Raw
  • Download

Lines Matching refs:path

60 _IDEA_DIR = os.path.join(_ROOT_DIR, 'templates/idea')
61 _TEMPLATE_IML_PATH = os.path.join(_ROOT_DIR, 'templates/module-template.iml')
65 _TEMPLATE_MODULES_PATH = os.path.join(_IDEA_DIR, _MODULES_XML)
66 _TEMPLATE_VCS_PATH = os.path.join(_IDEA_DIR, _VCS_XML)
81 _GITIGNORE_ABS_PATH = os.path.join(constant.ANDROID_ROOT_PATH,
85 _CODE_STYLE_SRC_PATH = os.path.join(constant.ANDROID_ROOT_PATH,
90 _ECLIP_TEMPLATE_PATH = os.path.join(_ROOT_DIR, 'templates/eclipse/eclipse.xml')
94 _ECLIP_PROJECT_PATH = os.path.join(_ROOT_DIR, 'templates/eclipse/project.xml')
132 parent_path = os.path.relpath(abs_module_path,
228 def _read_file_content(path): argument
237 with open(path) as template:
241 def _file_generate(path, content): argument
248 if not os.path.exists(os.path.dirname(path)):
249 os.makedirs(os.path.dirname(path))
250 with open(path, 'w') as target:
267 code_style_target_path = os.path.join(target_path, _IDEA_FOLDER,
272 rel_target = os.path.relpath(code_style_target_path, os.getcwd())
273 rel_source = os.path.relpath(_CODE_STYLE_SRC_PATH,
274 os.path.dirname(code_style_target_path))
281 os.path.join(_IDEA_DIR, _COMPILE_XML),
282 os.path.join(target_path, _IDEA_FOLDER, _COMPILE_XML))
284 os.path.join(_IDEA_DIR, _MISC_XML),
285 os.path.join(target_path, _IDEA_FOLDER, _MISC_XML))
298 target_folder_path = os.path.join(target_path, _IDEA_FOLDER, folder_name)
301 if os.path.exists(target_folder_path):
303 shutil.copytree(os.path.join(_IDEA_DIR, folder_name), target_folder_path)
306 def _handle_facet(content, path): argument
320 if os.path.isfile(os.path.join(path, _ANDROID_MANIFEST)):
342 module_library += _ORDER_ENTRY % os.path.join(root_path, jar_path)
351 module_library += _ORDER_ENTRY % os.path.join(root_path, jar_path)
408 _CONTENT_URL % os.path.join(root_path, relative_path))
409 for path, is_test_flag in sorted(source_dict.items()):
410 if _is_project_relative_source(path, relative_path):
411 src_builder.append(_SOURCE_FOLDER % (os.path.join(
412 root_path, path), is_test_flag))
415 for path, is_test_flag in sorted(source_dict.items()):
416 path = os.path.join(root_path, path)
417 src_builder.append(_CONTENT_URL % path)
418 src_builder.append(_SOURCE_FOLDER % (path, is_test_flag))
494 module_iml_path = os.path.join(module_path, module_name + _IML_EXTENSION)
507 dependencies_iml_path = os.path.join(module_path, dep_name + _IML_EXTENSION)
534 classpath_path = os.path.join(module_path, _ECLIP_EXTENSION)
550 eclipse_project = os.path.join(module_path, _ECLIP_PROJECT_EXTENSION)
585 file_name = os.path.splitext(module_name)[0]
593 iml_dir, iml_name = os.path.split(iml_path)
595 dep_path = os.path.join(iml_dir, dep_file)
600 target_path = os.path.join(module_path, _IDEA_FOLDER, _MODULES_XML)
619 while not os.path.isdir(os.path.join(git_path, _GIT_FOLDER_NAME)):
641 target_path = os.path.join(module_path, _IDEA_FOLDER, _VCS_XML)
671 gitignore_abs_path = os.path.join(target_folder, _GITIGNORE_FILE_NAME)
672 rel_target = os.path.relpath(gitignore_abs_path, os.getcwd())
673 rel_source = os.path.relpath(_GITIGNORE_ABS_PATH, target_folder)
676 if not os.path.exists(gitignore_abs_path):