diff --git a/gradle/docs.gradle b/gradle/docs.gradle index 8102dfb5509e..b7bcc042a967 100644 --- a/gradle/docs.gradle +++ b/gradle/docs.gradle @@ -148,14 +148,14 @@ task schemaZip(type: Zip) { def Properties schemas = new Properties(); subproject.sourceSets.main.resources.find { - it.path.endsWith("META-INF/spring.schemas") + (it.path.endsWith("META-INF/spring.schemas")||it.path.endsWith("META-INF\\spring.schemas")) }?.withInputStream { schemas.load(it) } for (def key : schemas.keySet()) { def shortName = key.replaceAll(/http.*schema.(.*).spring-.*/, '$1') assert shortName != key File xsdFile = subproject.sourceSets.main.resources.find { - it.path.endsWith(schemas.get(key)) + (it.path.endsWith(schemas.get(key))||it.path.endsWith(schemas.get(key).replaceAll('\\/','\\\\'))) } assert xsdFile != null into (shortName) {