public override void Compute() { TLArtifactsCollection artifactsCollection = (TLArtifactsCollection)Workspace.Load("artifactsCollection"); string path, collectionName, id; path = (string)Workspace.Load("outputPath"); if (path.EndsWith(".xml", StringComparison.CurrentCultureIgnoreCase)) { collectionName = path.Remove(path.LastIndexOf(".") + 1); } else { collectionName = path; path = path + ".xml"; } collectionName = collectionName.Substring(collectionName.LastIndexOf('\\') + 1); id = collectionName; ArtifactsCollectionExporterUtilities.Export(artifactsCollection, path, id, collectionName, "1.1", collectionName); Workspace.Store("collectionId", id); Logger.Info(String.Format("Artifacts Collection has been saved into xml file '{0}'", path)); }
public override void Compute() { TLArtifactsCollection artifactsCollection = (TLArtifactsCollection)Workspace.Load("artifactsCollection"); ArtifactsCollectionExporterUtilities.Export(artifactsCollection, Config.Path, Config.CollectionId, Config.CollectionName, Config.CollectionVersion, Config.CollectionDescription); Logger.Info(String.Format("Artifacts Collection has been saved into xml file '{0}'", Config.Path.Absolute)); }