ARTEMIS-1824 running broker from path with non-ascii chars

This commit is contained in:
Stanislav Knot 2018-04-23 15:12:01 +02:00 committed by Clebert Suconic
parent 02a7a98c5b
commit 0041f7bbac
2 changed files with 2 additions and 2 deletions

View File

@ -323,7 +323,7 @@ public final class XMLUtil {
public static void validate(final Node node, final String schemaFile) throws Exception {
SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
Schema schema = factory.newSchema(findResource(schemaFile));
Schema schema = factory.newSchema(new URL(findResource(schemaFile).toURI().toASCIIString()));
Validator validator = schema.newValidator();
// validate the DOM tree

View File

@ -18,4 +18,4 @@
# This script will validate the distribution works with folders with spaces on Linux machines
./validate-instalation.sh with\ spaces\ And\ Weird\ %26\ Characters
./validate-instalation.sh with\ spaces\ And\ Weird\ %26\ Characters\ Čeština\ 漢字\ водка\ 昨夜のコ\ ﷹ‬ﷸ‬