Skip to content

Commit d3e48e5

Browse files
authored
Infra: Fix typespec generation on Windows (#1570)
1 parent 31a3a3f commit d3e48e5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

contract-typespec/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ def typeSpecs = ["api"]
3232

3333
typeSpecs.each { spec ->
3434

35-
def tspPath = "\\tsp --output-dir=${project.layout.buildDirectory.get()}/tsp/${spec} compile .\\"
35+
def buildDir = project.layout.buildDirectory.get().asFile
36+
def outputDir = new File(buildDir, "tsp${File.separator}${spec}")
37+
def tspPath = "tsp --output-dir=\"${outputDir}\" compile ."
3638

3739
tasks.register("installDependencies_${spec}", NpmTask) {
3840
group = 'build'

0 commit comments

Comments
 (0)