mirror of
https://github.com/corda/corda.git
synced 2024-12-18 20:47:57 +00:00
Improve the upgrade-test-packages.sh script to work on macOS. Fixes an issue found by tom on pubslack. (#2894)
This commit is contained in:
parent
2863f8403b
commit
eb52c8be35
12
tools/scripts/upgrade-test-packages.sh
Normal file → Executable file
12
tools/scripts/upgrade-test-packages.sh
Normal file → Executable file
@ -1,5 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
find $1 -type f \( -iname \*.kt -o -iname \*.java \) -exec sed -i "
|
||||
#
|
||||
# Run this script with the path to your source code as the first argument. It will do some basic search/replace
|
||||
# changes to the files to ease the port from 2.0 to 3.0 (but it isn't a complete solution).
|
||||
#
|
||||
|
||||
s=$( which gsed )
|
||||
if [[ $? == 1 ]]; then
|
||||
s="sed"
|
||||
fi
|
||||
|
||||
find $1 -type f \( -iname \*.kt -o -iname \*.java \) -exec $s -i "
|
||||
s/net.corda.testing.\(\*\|generateStateRef\|freeLocalHostAndPort\|getFreeLocalPorts\|getTestPartyAndCertificate\|TestIdentity\|chooseIdentity\|singleIdentity\|TEST_TX_TIME\|DUMMY_NOTARY_NAME\|DUMMY_BANK_A_NAME\|DUMMY_BANK_B_NAME\|DUMMY_BANK_C_NAME\|BOC_NAME\|ALICE_NAME\|BOB_NAME\|CHARLIE_NAME\|DEV_INTERMEDIATE_CA\|DEV_ROOT_CA\|dummyCommand\|DummyCommandData\|MAX_MESSAGE_SIZE\|SerializationEnvironmentRule\|setGlobalSerialization\|expect\|sequence\|parallel\|replicate\|genericExpectEvents\)/net.corda.testing.core.\1/g
|
||||
" '{}' \;
|
Loading…
Reference in New Issue
Block a user