/// <summary> /// Internal utility to dump relationship lists in a structured format that can /// easily be compared with the tabular data in MS Project. /// </summary> /// <param name="relations">project file</param> public static void dumpRelationList(java.util.List relations) { if (relations != null && relations.isEmpty() == false) { if (relations.size() > 1) { System.Console.Write('"'); } bool first = true; foreach (Relation relation in relations.ToIEnumerable()) { if (!first) { System.Console.Write(','); } first = false; System.Console.Write(relation.TargetTask.ID); Duration lag = relation.Lag; if (relation.Type != RelationType.FINISH_START || lag.Duration != 0) { System.Console.Write(relation.Type); } if (lag.Duration != 0) { if (lag.Duration > 0) { System.Console.Write("+"); } System.Console.Write(lag); } } if (relations.size() > 1) { System.Console.Write('"'); } } }