Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions scrum/src/main/java/org/apache/ofbiz/scrum/ScrumServices.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import java.util.Locale;
import java.util.Map;
import java.util.Set;

import org.apache.ofbiz.base.util.Debug;
import org.apache.ofbiz.base.util.StringUtil;
import org.apache.ofbiz.base.util.UtilMisc;
Expand Down Expand Up @@ -141,14 +142,14 @@ public static Map<String, Object> viewScrumRevision(DispatchContext ctx, Map<Str
if (UtilValidate.isNotEmpty(repository) && UtilValidate.isNotEmpty(revision)
&& UtilValidate.isValidUrl(repository) && UtilValidate.isInteger(revision)) {
String logline = null;
Process logProcess = Runtime.getRuntime().exec("svn",
Process logProcess = Runtime.getRuntime().exec(new String[]{"svn"},
new String[]{"log", "-r", revision, repository});
BufferedReader logIn = new BufferedReader(new InputStreamReader(logProcess.getInputStream()));
while ((logline = logIn.readLine()) != null) {
logMessage.append(logline).append("\n");
}
String diffline = null;
Process diffProcess = Runtime.getRuntime().exec("svn",
Process diffProcess = Runtime.getRuntime().exec(new String[]{"svn"},
new String[]{"diff", "-r", StringUtil.addToNumberString(revision.trim(), -1) + ":" + revision, repository});
BufferedReader diffIn = new BufferedReader(new InputStreamReader(diffProcess.getInputStream()));
while ((diffline = diffIn.readLine()) != null) {
Expand Down Expand Up @@ -188,7 +189,7 @@ public static Map<String, Object> retrieveMissingScrumRevision(DispatchContext c
for (int i = 1; i <= revision; i++) {
String logline = null;
List<String> logMessageList = new LinkedList<>();
Process logProcess = Runtime.getRuntime().exec("svn",
Process logProcess = Runtime.getRuntime().exec(new String[]{"svn"},
new String[]{"log", "-r", String.valueOf(i), repositoryRoot});
BufferedReader logIn = new BufferedReader(new InputStreamReader(logProcess.getInputStream()));
while ((logline = logIn.readLine()) != null) {
Expand Down