Browse Source

output file must be specified as argument for JProbe 4.x.

PR: 14849


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274523 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 22 years ago
parent
commit
4cacfa503e
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      src/main/org/apache/tools/ant/taskdefs/optional/sitraka/CovMerge.java

+ 3
- 2
src/main/org/apache/tools/ant/taskdefs/optional/sitraka/CovMerge.java View File

@@ -124,6 +124,9 @@ public class CovMerge extends CovBase {
cmdl.createArgument().setValue(getParamFileArgument()
+ paramfile.getAbsolutePath());

// last argument is the output snapshot
cmdl.createArgument().setValue(tofile.getPath());

LogStreamHandler handler = new LogStreamHandler(this, Project.MSG_INFO, Project.MSG_WARN);
Execute exec = new Execute(handler);
log(cmdl.describeCommand(), Project.MSG_VERBOSE);
@@ -196,8 +199,6 @@ public class CovMerge extends CovBase {
for (int i = 0; i < snapshots.length; i++) {
pw.println(snapshots[i].getAbsolutePath());
}
// last file is the output snapshot
pw.println(getProject().resolveFile(tofile.getPath()));
pw.flush();
} catch (IOException e) {
throw new BuildException("I/O error while writing to " + file, e);


Loading…
Cancel
Save