ARTEMIS-1824 running broker from path with non-ascii chars
This commit is contained in:
parent
02a7a98c5b
commit
0041f7bbac
|
@ -323,7 +323,7 @@ public final class XMLUtil {
|
||||||
public static void validate(final Node node, final String schemaFile) throws Exception {
|
public static void validate(final Node node, final String schemaFile) throws Exception {
|
||||||
SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
|
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();
|
Validator validator = schema.newValidator();
|
||||||
|
|
||||||
// validate the DOM tree
|
// validate the DOM tree
|
||||||
|
|
|
@ -18,4 +18,4 @@
|
||||||
|
|
||||||
# This script will validate the distribution works with folders with spaces on Linux machines
|
# 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\ 漢字\ водка\ 昨夜のコ\ ﷹﷸ
|
Loading…
Reference in New Issue