Skip to content

Commit faad865

Browse files
committed
feat(SDK): sdk can will now accept stub generator 2 stubs
1 parent fa2b4b0 commit faad865

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runner/src/main/java/com/codingame/gameengine/runner/ConfigHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ public GameConfig findConfig(Path rootDir) throws IOException {
404404
}
405405
}
406406
}
407-
} else if ("stub.txt".equals(fileName)) {
407+
} else if ("stub.txt".equals(fileName) || "stub.json".equals(fileName)) {
408408
questionConfig.setStubGenerator(FileUtils.readFileToString(p.toFile(), StandardCharsets.UTF_8));
409409
} else if (statementMatcher.matches()) {
410410
String content = FileUtils.readFileToString(p.toFile(), StandardCharsets.UTF_8);

0 commit comments

Comments
 (0)