summaryrefslogtreecommitdiffstats
path: root/docs/manifest-format.txt
diff options
context:
space:
mode:
authorBrian Harring <brian.harring@intel.com>2011-04-28 05:04:41 -0700
committerShawn O. Pearce <sop@google.com>2012-05-24 09:07:24 -0700
commit2644874d9d3e6c16299a01acddf66cd99fd43414 (patch)
treebd2e86186a48a22286c6e919758d7edf366bda9a /docs/manifest-format.txt
parent3d125940f6223efe62e35b795f57e7e717b4528e (diff)
downloadgit-repo-2644874d9d3e6c16299a01acddf66cd99fd43414.tar.gz
ManifestXml: add include support
Having the ability to include other manifests is a very practical feature to ease the managment of manifest. It allows to divide a manifest into separate files, and create different environment depending on what we want to release You can have unlimited recursion of include, the manifest configs will simply be concatenated as if it was in a single file. command "repo manifest" will create a single manifest, and not recreate the manifest hierarchy for example: Our developement manifest will look like: <?xml version='1.0' encoding='UTF-8'?> <manifest> <default revision="platform/android/main" remote="intel"/> <include name="server.xml"/> <!-- The Server configuration --> <include name="aosp.xml" /> <!-- All the AOSP projects --> <include name="bsp.xml" /> <!-- The BSP projects that we release in source form --> <include name="bsp-priv.xml" /> <!-- The source of the BSP projects we release in binary form --> </manifest> Our release manifest will look like: <?xml version='1.0' encoding='UTF-8'?> <manifest> <default revision="platform/android/release-ext" remote="intel"/> <include name="server.xml"/> <!-- The Server configuration --> <include name="aosp.xml" /> <!-- All the AOSP projects --> <include name="bsp.xml" /> <!-- The BSP projects that we release in source form --> <include name="bsp-ext.xml" /> <!-- The PREBUILT version of the BSP projects we release in binary form --> </manifest> And it is also easy to create and maintain feature branch with a manifest that looks like: <?xml version='1.0' encoding='UTF-8'?> <manifest> <default revision="feature_branch_foobar" remote="intel"/> <include name="server.xml"/> <!-- The Server configuration --> <include name="aosp.xml" /> <!-- All the AOSP projects --> <include name="bsp.xml" /> <!-- The BSP projects that we release in source form --> <include name="bsp-priv.xml" /> <!-- The source of the BSP projects we release in binary form --> </manifest> Signed-off-by: Brian Harring <brian.harring@intel.com> Signed-off-by: Pierre Tardy <pierre.tardy@intel.com> Change-Id: I833a30d303039e485888768e6b81561b7665e89d
Diffstat (limited to 'docs/manifest-format.txt')
-rw-r--r--docs/manifest-format.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/manifest-format.txt b/docs/manifest-format.txt
index 53789651..9f4585b8 100644
--- a/docs/manifest-format.txt
+++ b/docs/manifest-format.txt
@@ -63,6 +63,9 @@ following DTD:
63 <!ELEMENT repo-hooks (EMPTY)> 63 <!ELEMENT repo-hooks (EMPTY)>
64 <!ATTLIST repo-hooks in-project CDATA #REQUIRED> 64 <!ATTLIST repo-hooks in-project CDATA #REQUIRED>
65 <!ATTLIST repo-hooks enabled-list CDATA #REQUIRED> 65 <!ATTLIST repo-hooks enabled-list CDATA #REQUIRED>
66
67 <!ELEMENT include (EMPTY)>
68 <!ATTLIST include name CDATA #REQUIRED>
66 ]> 69 ]>
67 70
68A description of the elements and their attributes follows. 71A description of the elements and their attributes follows.
@@ -192,6 +195,16 @@ This element is mostly useful in the local_manifest.xml, where
192the user can remove a project, and possibly replace it with their 195the user can remove a project, and possibly replace it with their
193own definition. 196own definition.
194 197
198Element include
199---------------
200
201This element provides the capability of including another manifest
202file into the originating manifest. Normal rules apply for the
203target manifest to include- it must be a usable manifest on it's own.
204
205Attribute `name`; the manifest to include, specified relative to
206the manifest repositories root.
207
195 208
196Local Manifest 209Local Manifest
197============== 210==============