sbailliez 01/08/07 15:30:07
Modified: src/main/org/apache/tools/ant/taskdefs/optional/junit
AggregateTransformer.java
Log:
Get the stylesheets from the xsl package since there is one...
Stylesheets have to be copied to xsl directory after compile.
Revision Changes Path
1.6 +2 -2
jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/junit/AggregateTransformer.java
Index: AggregateTransformer.java
===================================================================
RCS file:
/home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/junit/AggregateTransformer.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- AggregateTransformer.java 2001/08/07 22:08:45 1.5
+++ AggregateTransformer.java 2001/08/07 22:30:07 1.6
@@ -208,7 +208,7 @@
/**
* 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 @@
}
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);
}