diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2010-12-10 21:48:09 +0100 |
---|---|---|
committer | Chris Aniszczyk <caniszczyk@gmail.com> | 2010-12-13 08:47:17 -0600 |
commit | c6ca443b61372d73a7f1438c995713bad39b5277 (patch) | |
tree | a8e701858c05442169242c2781a271787fb48a22 /org.eclipse.jgit/resources | |
parent | 45a020fe6a1ed4a7a9f8c46ab81dd4e655211941 (diff) | |
download | jgit-c6ca443b61372d73a7f1438c995713bad39b5277.tar.gz jgit-c6ca443b61372d73a7f1438c995713bad39b5277.zip |
File utilities for creating directories
The java.io.File methods for creating directories report failure by
returning false. To ease proper checking of return values provide
utility methods wrapping mkdir() and mkdirs() which throw IOException
on failure.
Also fix the tests to store test data under a trash folder and cleanup
after test.
Change-Id: I09c7f9909caf7e25feabda9d31e21ce154e7fcd5
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
Diffstat (limited to 'org.eclipse.jgit/resources')
-rw-r--r-- | org.eclipse.jgit/resources/org/eclipse/jgit/JGitText.properties | 2 |
1 files changed, 2 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 07f0cb1d7d..05a429ddfa 100644 --- a/org.eclipse.jgit/resources/org/eclipse/jgit/JGitText.properties +++ b/org.eclipse.jgit/resources/org/eclipse/jgit/JGitText.properties @@ -268,6 +268,8 @@ missingPrerequisiteCommits=missing prerequisite commits: missingRequiredParameter=Parameter "{0}" is missing missingSecretkey=Missing secretkey. mixedStagesNotAllowed=Mixed stages not allowed +mkDirFailed=Creating directory {0} failed +mkDirsFailed=Creating directories for {0} failed multipleMergeBasesFor=Multiple merge bases for:\n {0}\n {1} found:\n {2}\n {3} need2Arguments=Need 2 arguments needPackOut=need packOut |