Skip to content

Commit 995985f

Browse files
committed
Fixed the meep meep transpilation gradle rule
1 parent 47000cc commit 995985f

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

MeepMeepTesting/build.gradle

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,14 @@ repositories {
2424
//apply from: '../build.dependencies.gradle'
2525

2626
def buildDirLoc = layout.buildDirectory.get().getAsFile().getAbsolutePath()
27-
def processedLocation = "${buildDirLoc}/generated-sources"
28-
def frontSlashed = processedLocation.replaceAll("\\\\", "/")
27+
def processedLocation16750 = "${buildDirLoc}/generated-sources-16750"
28+
def processedLocation20403 = "${buildDirLoc}/generated-sources-20403"
29+
def frontSlashed16750 = processedLocation16750.replaceAll("\\\\", "/")
30+
def frontSlashed20403 = processedLocation20403.replaceAll("\\\\", "/")
2931

3032
sourceSets.main.java.srcDirs += 'src/main/java'
31-
sourceSets.main.java.srcDirs += processedLocation
33+
sourceSets.main.java.srcDirs += processedLocation16750
34+
sourceSets.main.java.srcDirs += processedLocation20403
3235

3336
// This is a custom gradle task to copy constants into the MeepMeep code base
3437
// and manipulate them to make it all buildable
@@ -42,11 +45,11 @@ task makeMeepMeep16750Java {
4245
def theFiles = files(fileList)
4346

4447
inputs.files theFiles.asFileTree.files
45-
outputs.dir processedLocation
48+
outputs.dir processedLocation16750
4649

4750
doLast {
4851
exec {
49-
commandLine 'bun', 'meep', frontSlashed, 'DO_NOT_EDIT_16750', "\"" + fileList.join('" "').replace("\\\\", "/") + "\""
52+
commandLine 'bun', 'meep', frontSlashed16750, 'DO_NOT_EDIT_16750', "\"" + fileList.join('" "').replace("\\\\", "/") + "\""
5053
}
5154
}
5255
}
@@ -61,18 +64,19 @@ task makeMeepMeep20403Java {
6164
def theFiles = files(fileList)
6265

6366
inputs.files theFiles.asFileTree.files
64-
outputs.dir processedLocation
67+
outputs.dir processedLocation20403
6568

6669
doLast {
6770
exec {
68-
commandLine 'bun', 'meep', frontSlashed, 'DO_NOT_EDIT_20403', "\"" + fileList.join('" "').replace("\\\\", "/") + "\""
71+
commandLine 'bun', 'meep', frontSlashed20403, 'DO_NOT_EDIT_20403', "\"" + fileList.join('" "').replace("\\\\", "/") + "\""
6972
}
7073
}
7174
}
7275

7376

7477
task cleanMeepMeep {
75-
delete processedLocation
78+
delete processedLocation16750
79+
delete processedLocation20403
7680
}
7781

7882
compileJava {

0 commit comments

Comments
 (0)