uschindler commented on code in PR #14387: URL: https://github.com/apache/lucene/pull/14387#discussion_r2008716613
########## gradle/hacks/wipe-temp.gradle: ########## @@ -14,15 +14,35 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +import java.nio.file.Files +import java.time.temporal.ChronoUnit +import java.time.Instant + // See LUCENE-9471. We redirect temporary location for gradle // so that it doesn't pollute user's tmp. Wipe it during a clean though. configure(rootProject) { gradle.buildFinished { + // we clean up the java.io.tmpdir we've redirected gradle to use (LUCENE-9471). + // these are still used and populated with junk. rootProject.delete fileTree(".gradle/tmp").matching { Review Comment: maybe add a comment above that this is in project's directory. This caused confusion in the original discussion! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org