mirror of
https://github.com/corda/corda.git
synced 2025-05-31 14:40:52 +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> {
|
fun signContractJar(jarURL: URL, copyFirst: Boolean, keyStoreDir: Path? = null, alias: String = "testAlias", pwd: String = "testPassword"): Pair<Path, PublicKey> {
|
||||||
|
val urlAsPath = jarURL.toPath()
|
||||||
val jarName =
|
val jarName =
|
||||||
if (copyFirst) {
|
if (copyFirst) {
|
||||||
val signedJarName = Paths.get(jarURL.path.substringBeforeLast(".") + "-SIGNED.jar")
|
val signedJarName = Paths.get(urlAsPath.toString().substringBeforeLast(".") + "-SIGNED.jar")
|
||||||
Files.copy(jarURL.toPath(), signedJarName, StandardCopyOption.REPLACE_EXISTING)
|
Files.copy(urlAsPath, signedJarName, StandardCopyOption.REPLACE_EXISTING)
|
||||||
signedJarName
|
signedJarName
|
||||||
}
|
}
|
||||||
else jarURL.toPath()
|
else urlAsPath
|
||||||
|
|
||||||
val workingDir =
|
val workingDir =
|
||||||
if (keyStoreDir == null) {
|
if (keyStoreDir == null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user