/CCNetPlugins/VersionFileWriter.cs
https://github.com/RickyLin/DotNetUtilities · C# · 22 lines · 20 code · 2 blank · 0 comment · 0 complexity · adb578808c0870c9315e0e28e71d8c9c MD5 · raw file
- using Exortech.NetReflector;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using ThoughtWorks.CruiseControl.Core;
- using System.IO;
- namespace CCNetPlugins
- {
- [ReflectorType("versionWriterTask")]
- public class VersionFileWriter : ITask
- {
- [ReflectorProperty("versionFilePath")]
- public string VersionFilePath { get; set; }
- public void Run(IIntegrationResult result)
- {
- File.WriteAllText(VersionFilePath, result.Label);
- }
- }
- }