Skip to content

Commit

Permalink
try to make work with windows
Browse files Browse the repository at this point in the history
remove soft links and include the xslt and xsd using gradle mechanisms
  • Loading branch information
pahjbo committed Feb 8, 2024
1 parent 9c050a8 commit 4d27ef7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
15 changes: 12 additions & 3 deletions tools/gradletooling/gradle-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,16 @@ java {
}
}

sourceSets {
main {
// slightly complex way of adding the xslt and xsd directories to resources (they are at different levels)
resources {
setSrcDirs(listOf(layout.projectDirectory.dir("../../"),layout.projectDirectory.dir("../../..")))
setIncludes(listOf("xslt/**","xsd/**"))
}
}
}

// Add a source set for the functional test suite
val functionalTestSourceSet = sourceSets.create("functionalTest") {
}
Expand All @@ -92,7 +102,7 @@ val functionalTest by tasks.registering(Test::class) {
tasks.withType<Test>().configureEach {
useJUnitPlatform()
systemProperty("GRADLE_ROOT_FOLDER", projectDir.absolutePath)
systemProperty("GRADLE_BUILD_FOLDER", buildDir)
systemProperty("GRADLE_BUILD_FOLDER", layout.buildDirectory)
systemProperty("GRADLE_PLUGIN_VERSION", version)
testLogging {
showStandardStreams = true
Expand All @@ -106,10 +116,9 @@ tasks.check {
//dependsOn(functionalTest)
}


tasks.test {
useJUnitPlatform()
// exclude("**")
}



1 change: 0 additions & 1 deletion tools/gradletooling/gradle-plugin/src/main/resources/xsd

This file was deleted.

1 change: 0 additions & 1 deletion tools/gradletooling/gradle-plugin/src/main/resources/xslt

This file was deleted.

0 comments on commit 4d27ef7

Please sign in to comment.