We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9de76c commit 8ac0642Copy full SHA for 8ac0642
build.gradle
@@ -8,6 +8,8 @@ defaultTasks 'dist'
8
import com.nwalsh.gradle.saxon.SaxonXsltTask
9
import com.nwalsh.gradle.relaxng.validate.RelaxNGValidateTask
10
11
+def FS = System.getProperty("file.separator");
12
+
13
task copy_data(type: Copy) {
14
into "${buildDir}/xmlresolverdata-${version}"
15
from ("${projectDir}/src/data") {
@@ -33,7 +35,7 @@ task validate(dependsOn: ["make_data_catalog"]) {
33
35
34
36
make_data_catalog.outputs.files.each { xml ->
37
def fn = xml.toString()
- def pos = fn.lastIndexOf("/")
38
+ def pos = fn.lastIndexOf(FS)
39
fn = fn.substring(pos+1)
40
Task t = project.task("validate_${fn}", type: RelaxNGValidateTask) {
41
dependsOn "make_data_catalog"
0 commit comments