mirror of
https://github.com/corda/corda.git
synced 2025-04-12 21:53:17 +00:00
CORDA-2157: Fix Windows build (#4361)
Or else tests: AttachmentsClassLoaderTests.Test valid overlapping contract jar ConstraintsPropagationTests.Happy path for Hash to Signature Constraint migration are failing.
This commit is contained in:
parent
85ca832099
commit
316dc4ab92
@ -89,13 +89,14 @@ object ContractJarTestUtils {
|
||||
}
|
||||
|
||||
fun signContractJar(jarURL: URL, copyFirst: Boolean, keyStoreDir: Path? = null, alias: String = "testAlias", pwd: String = "testPassword"): Pair<Path, PublicKey> {
|
||||
val urlAsPath = jarURL.toPath()
|
||||
val jarName =
|
||||
if (copyFirst) {
|
||||
val signedJarName = Paths.get(jarURL.path.substringBeforeLast(".") + "-SIGNED.jar")
|
||||
Files.copy(jarURL.toPath(), signedJarName, StandardCopyOption.REPLACE_EXISTING)
|
||||
val signedJarName = Paths.get(urlAsPath.toString().substringBeforeLast(".") + "-SIGNED.jar")
|
||||
Files.copy(urlAsPath, signedJarName, StandardCopyOption.REPLACE_EXISTING)
|
||||
signedJarName
|
||||
}
|
||||
else jarURL.toPath()
|
||||
else urlAsPath
|
||||
|
||||
val workingDir =
|
||||
if (keyStoreDir == null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user