diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2010-12-30 23:10:55 +0100 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2011-01-14 17:28:14 +0100 |
commit | c45f2aec56a323a55119de0d17951fdb302f1c72 (patch) | |
tree | e730a1c0e65f113e3d37ea890d8937d2fb1b8e6d /org.eclipse.jgit/resources | |
parent | 05ca0c49f90842da9ad81a0d5a5b91e834648073 (diff) | |
download | jgit-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.properties | 1 |
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 |