Beispiel #1
0
        public void IncrementVersion(DirectoryInfo workspace, Project project)
        {
            var pom = Path.Combine(workspace.FullName, "pom.xml");

            if (File.Exists(pom))
            {
                VersionIncrement.ReplaceFileContent(pom, c => PomReader.IncrementVersion(c));
            }
        }
Beispiel #2
0
        public void IncrementVersion(DirectoryInfo workspace, Project project)
        {
            var projectDir = Path.Combine(workspace.FullName, project.FlatName);

            if (!Directory.Exists(projectDir))
            {
                return;
            }

            var pom            = "pom.xml";
            var controllerJson = project.ArtifactId + "_controller.json";

            if (File.Exists(Path.Combine(projectDir, controllerJson)))
            {
                VersionIncrement.ReplaceFileContent(Path.Combine(projectDir, controllerJson), c => ControllerJsonReader.IncrementVersion(c));
            }

            if (File.Exists(Path.Combine(projectDir, pom)))
            {
                VersionIncrement.ReplaceFileContent(Path.Combine(projectDir, pom), c => PomReader.IncrementVersion(c));
            }
        }
Beispiel #3
0
        public void IncrementFlowVersion(DirectoryInfo projectDir, Dependency flow, Project project)
        {
            var pom       = "pom.xml";
            var flowName  = flow.ArtifactId.ToLower();
            var bpmn      = flowName + ".bpmn";
            var flowsJson = flowName + ".json";

            if (File.Exists(Path.Combine(projectDir.FullName, pom)))
            {
                VersionIncrement.ReplaceFileContent(Path.Combine(projectDir.FullName, pom), c => PomReader.IncrementVersion(c));
            }

            if (File.Exists(Path.Combine(projectDir.FullName, bpmn)))
            {
                VersionIncrement.ReplaceFileContent(Path.Combine(projectDir.FullName, bpmn), c => BpmnReader.IncrementVersion(c));
            }

            if (File.Exists(Path.Combine(projectDir.FullName, flowsJson)))
            {
                VersionIncrement.ReplaceFileContent(Path.Combine(projectDir.FullName, flowsJson), c => ProcessFlowJsonReader.IncrementVersion(c));
            }
        }