使用带repo的local_manifest.xml

Sid*_*oss 11 android sync repository android-manifest

我使用repo下载了android源代码.它说repo被初始化为一个目录,那就是文件夹下载的地方.现在我有另一个local_manifest.xml文件,我想使用repo sync来获取另一个目录.如何使用此新清单文件将目录提取到我的存储库?

luc*_*ini 26

Repo 1.9.1有一个新功能.

您将在.repo/命名下找到一个新文件夹local_manifests.

repo工具还将跟随您将添加到此文件夹的清单文件中的项目.

更多信息在这里.


小智 23

做这个:

cp your_local_mainifest.xml .repo/manifests
repo init -m your_local_manifest.xml
repo sync
Run Code Online (Sandbox Code Playgroud)

  • 这对我不起作用。`致命:需要清单 url (-u)。` (5认同)

Pek*_*der 7

如果文件名确实存在local_manifest.xml,那么您很可能希望添加到构建中,而不是仅使用它构建.如果是这种情况,那么只需将其放在.repo中:

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

repo工具基本上连接manifest.xmllocal_manifest.xml.

有关详细信息,请参阅http://www.androidenea.com/2010/06/using-localmanifestxml-file-in-repo-to.html