|
|
@@ -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. |
|
|
|
*/ |
|
|
|