using a local_manifest.xml with repo

廉价感情. 提交于 2019-12-03 03:56:51

问题


I downloaded the android sources using repo. It says repo is initialized to a directory and thats where the folders get downloaded. Now I have another local_manifest.xml file which I want to use with repo sync to fetch another directory. How do I use this new manifest file to fetch the directories to my repository?


回答1:


Do this:

cp your_local_mainifest.xml .repo/manifests
repo init -m your_local_manifest.xml
repo sync



回答2:


Repo 1.9.1 has a new feature.

You'll find a new folder under .repo/ named local_manifests.

The repo tool will follow also the projects in the manifest files you'll add into this folder.

More info here.




回答3:


If the file name is really local_manifest.xml, you most probably want to add it to your build instead of building using just it. If that is the case, then simply place it in .repo:

  cp /whereever/local_manifest.xml .repo/local_manifest.xml
  repo sync

The repo tool essentially concatenates manifest.xml and local_manifest.xml.

For more information, see http://www.androidenea.com/2010/06/using-localmanifestxml-file-in-repo-to.html



来源:https://stackoverflow.com/questions/5672394/using-a-local-manifest-xml-with-repo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!