* Also allow a single package dependency

git-svn-id: trunk@20573 -
This commit is contained in:
joost 2012-03-22 14:03:06 +00:00
parent 386fb374ce
commit 1bf8ef2428

View File

@ -122,13 +122,14 @@ var
AJSonArray: TJSONArray;
n: Integer;
begin
if AJsonData.JSONType <> jtArray then
raise Exception.CreateFmt('Array expected but not found. (%s)',[AJsonData.AsString]);
AJSonArray := AJsonData as TJSONArray;
for n := 0 to AJSonArray.Count-1 do
if AJsonData.JSONType = jtArray then
begin
ParseConditionalString(ACondStrings.add(''), AJSonArray.Items[n], ValueCaption);
end;
AJSonArray := AJsonData as TJSONArray;
for n := 0 to AJSonArray.Count-1 do
ParseConditionalString(ACondStrings.add(''), AJSonArray.Items[n], ValueCaption);
end
else
ParseConditionalString(ACondStrings.add(''), AJsonData, ValueCaption);
end;
procedure ParseUnitTarget(aTarget: TTarget; aJSONData: TJSONData);