-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
David Witherspoon
committed
Jan 16, 2015
1 parent
902325c
commit 5d26585
Showing
10 changed files
with
446 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package io.dpwspoon.github.utils; | ||
|
||
import java.io.File; | ||
|
||
public final class FileUtils { | ||
public static void deleteFolder(File folder) { | ||
File[] files = folder.listFiles(); | ||
if (files != null) { | ||
for (File f : files) { | ||
if (f.isDirectory()) { | ||
deleteFolder(f); | ||
} else { | ||
f.delete(); | ||
} | ||
} | ||
} | ||
folder.delete(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package io.dpwspoon.github.utils; | ||
|
||
import java.io.IOException; | ||
|
||
import org.kohsuke.github.GitHubBuilder; | ||
|
||
public final class GithubUtils { | ||
|
||
public static final String MY_GITHUB_USER_NAME; | ||
|
||
static { | ||
try { | ||
MY_GITHUB_USER_NAME = GitHubBuilder.fromCredentials().build().getMyself().getLogin(); | ||
} catch (IOException e) { | ||
throw new RuntimeException(e); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.