Ejemplo n.º 1
0
        private void IncrementVersionString(XmlElement version)
        {
            var oldVersion = Version.Parse(version.InnerText);
            var newVersion = VersionIncrement.Increment(oldVersion);

            version.InnerText = newVersion.ToString();
        }
Ejemplo n.º 2
0
        private static FlowConfiguration ReadBooking(dynamic process, bool incrementVersion)
        {
            var bookingGroup  = (string)process.bookingGroup ?? "";
            var configuration = (string)process.configuration ?? "";
            var resource      = (string)process.resource ?? "";
            var version       = (string)process.version ?? "?";

            if (incrementVersion && version != "?")
            {
                process.version = VersionIncrement.Increment(Version.Parse(version)).ToString();
            }

            var dependency = Dependency.ParsePackage(resource.Replace("/", "."), "");
            var flow       = new FlowConfiguration("*" + dependency.GroupId, dependency.ArtifactId, version, bookingGroup, configuration);

            return(flow);
        }