mirror of
https://github.com/corda/corda.git
synced 2025-06-11 03:41: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)
|
val fileManager = compiler.getStandardFileManager(null, null, null)
|
||||||
fileManager.setLocation(StandardLocation.CLASS_OUTPUT, listOf(workingDir.toFile()))
|
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")
|
val outFile = fileManager.getFileForInput(StandardLocation.CLASS_OUTPUT, packages.joinToString("."), "$className.class")
|
||||||
return Paths.get(outFile.name)
|
return Paths.get(outFile.name)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user