System.err.println("multiple sources require a destination directory");
System.exit(1);
}
try {
MergePath stylePath = new MergePath();
stylePath.addMergePath(Vfs.lookup(xslName).getParent());
stylePath.addMergePath(Vfs.lookup());
stylePath.addMergePath(CauchoSystem.getResinHome().lookup("xsl"));
ClassLoader loader = Thread.currentThread().getContextClassLoader();
if (loader instanceof DynamicClassLoader) {
DynamicClassLoader dynLoader
= (DynamicClassLoader) loader;
String resourcePath = dynLoader.getResourcePathSpecificFirst();
stylePath.addClassPath(resourcePath);
}
// stylePath.addClassPath(
/*
Path []stylePath = new Path[] {
Pwd.lookup(xslName).getParent(),
Pwd.lookup(),
CauchoSystem.getResinHome().lookup("xsl")};
*/
Path []scriptPath = new Path[] {
Vfs.lookup(),
Vfs.lookup(xslName).getParent(),
CauchoSystem.getResinHome().lookup("scripts")
};
Path xslPath = stylePath.lookup(xslName);
if (xslPath == null) {
System.out.println("can't find `" + xslName + "'");
System.exit(1);
}