]> source.dussan.org Git - jgit.git/commit
File utility for creating a new empty file 05/2105/5
authorMatthias Sohn <matthias.sohn@sap.com>
Thu, 30 Dec 2010 22:10:55 +0000 (23:10 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Fri, 14 Jan 2011 16:28:14 +0000 (17:28 +0100)
commitc45f2aec56a323a55119de0d17951fdb302f1c72
treee730a1c0e65f113e3d37ea890d8937d2fb1b8e6d
parent05ca0c49f90842da9ad81a0d5a5b91e834648073
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>
org.eclipse.jgit.test/tst/org/eclipse/jgit/util/FileUtilTest.java
org.eclipse.jgit/resources/org/eclipse/jgit/JGitText.properties
org.eclipse.jgit/src/org/eclipse/jgit/JGitText.java
org.eclipse.jgit/src/org/eclipse/jgit/util/FileUtils.java