@@ -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
721721task computeOriginalIrHash (type : ChecksumTask ) {
722722 inputDirectory = codecsDir
723- outputFile = originalHashFile
723+ outputFile = oldHashFile
724724}
725725
726726task computeUpdatedIrHash (type : ChecksumTask , dependsOn : ' generateJavaIrCodecs' ) {
@@ -730,7 +730,7 @@ task computeUpdatedIrHash(type: ChecksumTask, dependsOn: 'generateJavaIrCodecs')
730730
731731task 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