Skip to content

Commit a5cbfb9

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 183fdd7 + 75f1400 commit a5cbfb9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -713,14 +713,14 @@ task testReport(type: TestReport) {
713713
reportOn subprojects*.test
714714
}
715715

716-
final codecsDir = Paths.get('sbe-tool/src/main/java/uk/co/real_logic/sbe/ir/generated').toFile()
717-
final outputDir = Paths.get('sbe-tool/build')
718-
final originalHashFile = outputDir.resolve('original.sha256').toFile()
719-
final newHashFile = outputDir.resolve('new.sha256').toFile()
716+
final codecsDir = project.file('sbe-tool/src/main/java/uk/co/real_logic/sbe/ir/generated')
717+
final outputDir = project.file('sbe-tool/build')
718+
final oldHashFile = new File(outputDir, 'old.sha256')
719+
final newHashFile = new File(outputDir, 'new.sha256')
720720

721721
task computeOriginalIrHash(type: ChecksumTask) {
722722
inputDirectory = codecsDir
723-
outputFile = originalHashFile
723+
outputFile = oldHashFile
724724
}
725725

726726
task computeUpdatedIrHash(type: ChecksumTask, dependsOn: 'generateJavaIrCodecs') {
@@ -730,7 +730,7 @@ task computeUpdatedIrHash(type: ChecksumTask, dependsOn: 'generateJavaIrCodecs')
730730

731731
task verifyJavaIrCodecsInSync(dependsOn: 'computeUpdatedIrHash') {
732732
doLast {
733-
final byte[] oldHash = Files.readAllBytes(originalHashFile.toPath())
733+
final byte[] oldHash = Files.readAllBytes(oldHashFile.toPath())
734734
final byte[] newHash = Files.readAllBytes(newHashFile.toPath())
735735
if (!Arrays.equals(oldHash, newHash))
736736
{

0 commit comments

Comments
 (0)