summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/resources
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2010-12-30 23:10:55 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2011-01-14 17:28:14 +0100
commitc45f2aec56a323a55119de0d17951fdb302f1c72 (patch)
treee730a1c0e65f113e3d37ea890d8937d2fb1b8e6d /org.eclipse.jgit/resources
parent05ca0c49f90842da9ad81a0d5a5b91e834648073 (diff)
downloadjgit-c45f2aec56a323a55119de0d17951fdb302f1c72.tar.gz
jgit-c45f2aec56a323a55119de0d17951fdb302f1c72.zip
File utility for creating a new empty file
The java.io.File.createNewFile() method for creating new empty files reports failure by returning false. To ease proper checking of return values provide a utility method wrapping createNewFile() throwing IOException on failure. Change-Id: I42a3dc9d8ff70af62e84de396e6a740050afa896 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit/resources')
-rw-r--r--org.eclipse.jgit/resources/org/eclipse/jgit/JGitText.properties1
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.jgit/resources/org/eclipse/jgit/JGitText.properties b/org.eclipse.jgit/resources/org/eclipse/jgit/JGitText.properties
index c8f5920977..3049ae7d09 100644
--- a/org.eclipse.jgit/resources/org/eclipse/jgit/JGitText.properties
+++ b/org.eclipse.jgit/resources/org/eclipse/jgit/JGitText.properties
@@ -130,6 +130,7 @@ couldNotWriteFile=Could not write file {0}
countingObjects=Counting objects
createBranchFailedUnknownReason=Create branch failed for unknown reason
createBranchUnexpectedResult=Create branch returned unexpected result {0}
+createNewFileFailed=Could not create new file {0}
credentialPassword=Password
credentialUsername=Username
daemonAlreadyRunning=Daemon already running