From f7ce826bb30ed26f71a100a009cc5d792a35b42c Mon Sep 17 00:00:00 2001 From: Stephane Bailliez Date: Tue, 7 Aug 2001 22:30:07 +0000 Subject: [PATCH] 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 --- .../ant/taskdefs/optional/junit/AggregateTransformer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/junit/AggregateTransformer.java b/src/main/org/apache/tools/ant/taskdefs/optional/junit/AggregateTransformer.java index 9f926bbbd..3881bd9dd 100644 --- a/src/main/org/apache/tools/ant/taskdefs/optional/junit/AggregateTransformer.java +++ b/src/main/org/apache/tools/ant/taskdefs/optional/junit/AggregateTransformer.java @@ -208,7 +208,7 @@ public class AggregateTransformer { /** * Get the systemid of the appropriate stylesheet based on its * 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. * @throws IOException thrown if the requested stylesheet does * not exist. @@ -220,7 +220,7 @@ public class AggregateTransformer { } URL url = null; if (styleDir == null){ - url = getClass().getResource(xslname); + url = getClass().getResource("xsl/" + xslname); if (url == null){ throw new FileNotFoundException("Could not find jar resource " + xslname); }