Browse Source

Get the stylesheets from the xsl package since there is one...

Stylesheets have to be copied to xsl directory after compile.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269507 13f79535-47bb-0310-9956-ffa450edef68
master
Stephane Bailliez 24 years ago
parent
commit
f7ce826bb3
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/main/org/apache/tools/ant/taskdefs/optional/junit/AggregateTransformer.java

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

@@ -208,7 +208,7 @@ public class AggregateTransformer {
/** /**
* Get the systemid of the appropriate stylesheet based on its * Get the systemid of the appropriate stylesheet based on its
* name and styledir. If no styledir is defined it will load * name and styledir. If no styledir is defined it will load
* it as a java resource in the current package, otherwise it
* it as a java resource in the xsl child package, otherwise it
* will get it from the given directory. * will get it from the given directory.
* @throws IOException thrown if the requested stylesheet does * @throws IOException thrown if the requested stylesheet does
* not exist. * not exist.
@@ -220,7 +220,7 @@ public class AggregateTransformer {
} }
URL url = null; URL url = null;
if (styleDir == null){ if (styleDir == null){
url = getClass().getResource(xslname);
url = getClass().getResource("xsl/" + xslname);
if (url == null){ if (url == null){
throw new FileNotFoundException("Could not find jar resource " + xslname); throw new FileNotFoundException("Could not find jar resource " + xslname);
} }


Loading…
Cancel
Save