From 6f8eadac02e5236c9dca1795a9d73bbdacfbec46 Mon Sep 17 00:00:00 2001 From: kohsuke Date: Thu, 5 Jun 2008 21:57:58 +0000 Subject: [PATCH] added one more utility method. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@9882 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/util/TextFile.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/main/java/hudson/util/TextFile.java b/core/src/main/java/hudson/util/TextFile.java index 39be22a074..bae7f736e4 100644 --- a/core/src/main/java/hudson/util/TextFile.java +++ b/core/src/main/java/hudson/util/TextFile.java @@ -26,6 +26,10 @@ public class TextFile { return file.exists(); } + public void delete() { + file.delete(); + } + /** * Reads the entire contents and returns it. */