Skip to content
Snippets Groups Projects
Commit 8e2c17ca authored by Shawn Pearce's avatar Shawn Pearce
Browse files

eclipse-iplog: Require at least one project section


We need at least one project definition to dump out a reasonably
sane IP log file in XML format.

Change-Id: I5cfcd70cd98e29159014cf3dbf0433dd9c49d49c
Signed-off-by: default avatarShawn O. Pearce <spearce@spearce.org>
parent c94c631e
No related branches found
No related tags found
No related merge requests found
......@@ -211,6 +211,12 @@ private void loadEclipseIpLog(String version, RevCommit commit)
+ " is invalid", e);
}
if (meta.getProjects().isEmpty()) {
throw new ConfigInvalidException("Configuration file "
+ log.getPathString() + " in commit " + commit.name()
+ " has no projects declared.");
}
for (Project p : meta.getProjects()) {
p.setVersion(version);
projects.put(p.getName(), p);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment