Skip to content

Commit

Permalink
some debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
cecom committed Jun 12, 2015
1 parent 7c9e30b commit d96cc16
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/de/oppermann/pomutils/PomMergeDriver.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ public PomMergeDriver(Ruleset ruleset, String basePomFile, String ourPomFile, St

public int merge() {
try {
logger.debug("Doing merge [our={}] [base={}] [their={}]", ourPomFile,
basePomFile, theirPomFile);

POM basePom = new POM(basePomFile);
POM ourPom = new POM(ourPomFile);
POM theirPom = new POM(theirPomFile);
Expand All @@ -74,7 +77,8 @@ public int merge() {
}

private int doGitMerge() {
ProcessBuilder processBuilder = new ProcessBuilder("git", "merge-file", "-L", "ours", "-L", "base", "-L", "theirs",
ProcessBuilder processBuilder = new ProcessBuilder("git", "merge-file", "-L", "ours", "-L", "base", "-L",
"theirs",
ourPomFile, basePomFile, theirPomFile);
processBuilder.redirectErrorStream(true);
try {
Expand Down

0 comments on commit d96cc16

Please sign in to comment.