Skip to content

Commit 6d92e9e

Browse files
authored
Merge pull request #10 from ndw/winbuild
Fix build on Windows
2 parents a9de76c + 8ac0642 commit 6d92e9e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ defaultTasks 'dist'
88
import com.nwalsh.gradle.saxon.SaxonXsltTask
99
import com.nwalsh.gradle.relaxng.validate.RelaxNGValidateTask
1010

11+
def FS = System.getProperty("file.separator");
12+
1113
task copy_data(type: Copy) {
1214
into "${buildDir}/xmlresolverdata-${version}"
1315
from ("${projectDir}/src/data") {
@@ -33,7 +35,7 @@ task validate(dependsOn: ["make_data_catalog"]) {
3335

3436
make_data_catalog.outputs.files.each { xml ->
3537
def fn = xml.toString()
36-
def pos = fn.lastIndexOf("/")
38+
def pos = fn.lastIndexOf(FS)
3739
fn = fn.substring(pos+1)
3840
Task t = project.task("validate_${fn}", type: RelaxNGValidateTask) {
3941
dependsOn "make_data_catalog"

0 commit comments

Comments
 (0)