Saxon-Classpath: lib-Unterordner für Dependencies unterstützen
Erweitert den Classpath-Mechanismus, sodass JAR-Dateien aus dem lib-Unterverzeichnis des Saxon-Ordners automatisch eingebunden werden. Dies behebt den NoClassDefFoundError für org.xmlresolver.Resolver. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -163,6 +163,13 @@ class TransformationJob:
|
|||||||
saxon_dir = self.saxon_jar_path.parent
|
saxon_dir = self.saxon_jar_path.parent
|
||||||
all_jars = glob.glob(str(saxon_dir / "*.jar"))
|
all_jars = glob.glob(str(saxon_dir / "*.jar"))
|
||||||
|
|
||||||
|
# Sammle auch alle JARs aus dem lib-Unterordner (z.B. xmlresolver)
|
||||||
|
lib_dir = saxon_dir / "lib"
|
||||||
|
if lib_dir.exists() and lib_dir.is_dir():
|
||||||
|
lib_jars = glob.glob(str(lib_dir / "*.jar"))
|
||||||
|
all_jars.extend(lib_jars)
|
||||||
|
logger.debug(f"Zusätzliche JARs aus lib-Verzeichnis gefunden: {len(lib_jars)}")
|
||||||
|
|
||||||
# Verwende alle JARs im Classpath (getrennt durch : auf Linux/Mac, ; auf Windows)
|
# Verwende alle JARs im Classpath (getrennt durch : auf Linux/Mac, ; auf Windows)
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user