Browse Source

trivial

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@672902 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 17 years ago
parent
commit
83f7a54258
1 changed files with 2 additions and 8 deletions
  1. +2
    -8
      src/main/org/apache/tools/ant/taskdefs/optional/junit/AggregateTransformer.java

+ 2
- 8
src/main/org/apache/tools/ant/taskdefs/optional/junit/AggregateTransformer.java View File

@@ -287,21 +287,15 @@ public class AggregateTransformer {
if (styleDir == null) {
// If style dir is not specified we have to retrieve
// the stylesheet from the classloader
URLResource stylesheet = new URLResource();
URL stylesheetURL = getClass().getClassLoader().getResource(
"org/apache/tools/ant/taskdefs/optional/junit/xsl/" + xslname);
stylesheet.setURL(stylesheetURL);
return stylesheet;
return new URLResource(stylesheetURL);
}
// If we are here, then the style dir is here and we
// should read the stylesheet from the filesystem
FileResource stylesheet = new FileResource();
File stylesheetFile = new File(styleDir, xslname);
stylesheet.setFile(stylesheetFile);
return stylesheet;
return new FileResource(new File(styleDir, xslname));
}


/** check for invalid options
* @throws BuildException if something goes wrong.
*/


Loading…
Cancel
Save