Skip to content

Commit

Permalink
Avoid naming conflict in backup files.
Browse files Browse the repository at this point in the history
  • Loading branch information
rjust committed Sep 11, 2024
1 parent 1703ec3 commit 0da2a96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/projects/Mockito/Mockito.build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
<!-- Delete a test that is causing trouble -->
<delete file="${basedir}/buildSrc/src/test/groovy/org/mockito/release/notes/improvements/GitHubTicketFetcherTest.groovy" quiet="true" />
<!-- Backup build file and set mutation compiler -->
<copy file="${basedir}/build.gradle" tofile="${basedir}/build.gradle.bak"/>
<copy file="${basedir}/build.gradle" tofile="${basedir}/build.gradle.nonmut"/>

<trycatch>
<try>
Expand All @@ -128,7 +128,7 @@
</try>
<finally>
<!-- Restore the default compiler -->
<move file="${basedir}/build.gradle.bak" tofile="${basedir}/build.gradle"/>
<move file="${basedir}/build.gradle.nonmut" tofile="${basedir}/build.gradle"/>
</finally>
</trycatch>
</target>
Expand Down

0 comments on commit 0da2a96

Please sign in to comment.