diff --git a/.gitattributes b/.gitattributes index d13affe..cb4215a 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,3 @@ # Ensure all Java files use LF. *.java eol=lf +*.xml eol=lf diff --git a/ballerina/Dependencies.toml b/ballerina/Dependencies.toml index 4142d61..eb35607 100644 --- a/ballerina/Dependencies.toml +++ b/ballerina/Dependencies.toml @@ -14,7 +14,6 @@ version = "0.1.0" dependencies = [ {org = "ballerina", name = "io"}, {org = "ballerina", name = "jballerina.java"}, - {org = "ballerina", name = "lang.regexp"}, {org = "ballerina", name = "test"} ] modules = [ @@ -51,18 +50,6 @@ dependencies = [ {org = "ballerina", name = "jballerina.java"} ] -[[package]] -org = "ballerina" -name = "lang.regexp" -version = "0.0.0" -scope = "testOnly" -dependencies = [ - {org = "ballerina", name = "jballerina.java"} -] -modules = [ - {org = "ballerina", packageName = "lang.regexp", moduleName = "lang.regexp"} -] - [[package]] org = "ballerina" name = "lang.value" diff --git a/ballerina/tests/stream_namespace_test.bal b/ballerina/tests/stream_namespace_test.bal index 3369e9e..7594188 100644 --- a/ballerina/tests/stream_namespace_test.bal +++ b/ballerina/tests/stream_namespace_test.bal @@ -16,7 +16,6 @@ import ballerina/io; import ballerina/test; -import ballerina/lang.regexp; @Namespace { uri: "http://www.example.com/products", @@ -200,8 +199,9 @@ function testNamespaceInvoiceFullPlain() returns error? { test:assertEquals(invoice.products.product[0].length(), 5, "Product 1 field count mismatched"); test:assertEquals(invoice.products.product[0].id, 1); test:assertEquals(invoice.products.product[0].name, "Product 1"); - test:assertEquals(regexp:replaceAll(re `[\r\n]`, invoice.products.product[0].description, "\n"), - "This is the description for\n Product 1.\n "); + test:assertEquals(invoice.products.product[0].description, string `This is the description for + Product 1. + `); test:assertEquals(invoice.products.product[0].price.length(), 2, "Price 1 price field count mismatched"); test:assertEquals(invoice.products.product[0].price.\#content, 57.70d); test:assertEquals(invoice.products.product[0].price.currency, "USD"); @@ -210,8 +210,9 @@ function testNamespaceInvoiceFullPlain() returns error? { test:assertEquals(invoice.products.product[1].length(), 5, "Product 2 field count mismatched"); test:assertEquals(invoice.products.product[1].id, 2); test:assertEquals(invoice.products.product[1].name, "Product 2"); - test:assertEquals(regexp:replaceAll(re `[\r\n]`, invoice.products.product[1].description, "\n"), - "This is the description for\n Product 2.\n "); + test:assertEquals(invoice.products.product[1].description, string `This is the description for + Product 2. + `); test:assertEquals(invoice.products.product[0].price.length(), 2, "Price 1 price field count mismatched"); test:assertEquals(invoice.products.product[1].price.\#content, 6312.36d); test:assertEquals(invoice.products.product[1].price.currency, "LKR"); diff --git a/native/src/main/resources/META-INF/native-image/io.ballerina.stdlib/data-native/resource-config.json b/native/src/main/resources/META-INF/native-image/io.ballerina.stdlib/data-native/resource-config.json index 6cfd723..befe09e 100644 --- a/native/src/main/resources/META-INF/native-image/io.ballerina.stdlib/data-native/resource-config.json +++ b/native/src/main/resources/META-INF/native-image/io.ballerina.stdlib/data-native/resource-config.json @@ -1,10 +1,4 @@ { - "resources":{ - "includes":[ { - "pattern":"\\QMETA-INF/services/javax.xml.stream.XMLInputFactory\\E" - }, { - "pattern":"\\QMETA-INF/services/javax.xml.stream.XMLOutputFactory\\E" - }]}, "bundles":[{ "name":"error", "locales":[""]