Browse Source

Use the coverage home directory...not the JProbe home.

Be consistent with other tasks.
May need to refactor some code in an abstract class.
Reported by stefan hardege <s.hardege@web.de>


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269934 13f79535-47bb-0310-9956-ffa450edef68
master
Stephane Bailliez 23 years ago
parent
commit
2968fccd32
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      src/main/org/apache/tools/ant/taskdefs/optional/sitraka/CovMerge.java

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

@@ -157,14 +157,16 @@ public class CovMerge extends Task {
if (tofile == null) {
throw new BuildException("'tofile' attribute must be set.");
}
if (home == null) {
throw new BuildException("'home' attribute must be set to JProbe Coverage home directory");

// check coverage home
if (home == null || !home.isDirectory() ) {
throw new BuildException("Invalid home directory. Must point to JProbe home directory");
}
home = new File(home,"Coverage");
File jar = new File(home, "coverage.jar");
if (!jar.exists()) {
throw new BuildException("'home' attribute is not set to Coverage home directory: " + home);
throw new BuildException("Cannot find Coverage directory: " + home);
}
}

/** get the snapshots from the filesets */


Loading…
Cancel
Save