mirror of
https://github.com/corda/corda.git
synced 2025-04-07 19:34:41 +00:00
CORDA-3772: Now specify source and target of 8 when compiling contract classes. (#6249)
This commit is contained in:
parent
9caf6538ce
commit
74080e7cb6
@ -110,7 +110,7 @@ object ContractJarTestUtils {
|
||||
val fileManager = compiler.getStandardFileManager(null, null, null)
|
||||
fileManager.setLocation(StandardLocation.CLASS_OUTPUT, listOf(workingDir.toFile()))
|
||||
|
||||
compiler.getTask(System.out.writer(), fileManager, null, null, null, listOf(source)).call()
|
||||
compiler.getTask(System.out.writer(), fileManager, null, listOf("-source", "8", "-target", "8"), null, listOf(source)).call()
|
||||
val outFile = fileManager.getFileForInput(StandardLocation.CLASS_OUTPUT, packages.joinToString("."), "$className.class")
|
||||
return Paths.get(outFile.name)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user