Commit 9f258e5f authored by Robert Smith's avatar Robert Smith
Browse files

Made try/catch statement generic



Removed the specification for which exception was thrown in
GitCloneHandler, since Maven doesn't recognize that function as throwing
the previously given exception.
Signed-off-by: Robert Smith's avatarRobert Smith <smithrw@ornl.gov>
parent 4705b1a5
...@@ -166,11 +166,7 @@ public class GitCloneHandler extends AbstractHandler { ...@@ -166,11 +166,7 @@ public class GitCloneHandler extends AbstractHandler {
cloneOperation = new CloneOperation(new URIish(repo), true, null, cloneLocation, branch, "origin", cloneOperation = new CloneOperation(new URIish(repo), true, null, cloneLocation, branch, "origin",
100); 100);
addPostCloneTasks(); addPostCloneTasks();
try { UserPasswordCredentials credentials = SecureStoreUtils.getCredentials(new URIish(repo));
UserPasswordCredentials credentials = SecureStoreUtils.getCredentials(new URIish(repo));
} catch (StorageException e) {
e.printStackTrace();
}
cloneOperation.run(monitor); cloneOperation.run(monitor);
final RepositoryUtil util = Activator.getDefault().getRepositoryUtil(); final RepositoryUtil util = Activator.getDefault().getRepositoryUtil();
util.addConfiguredRepository(cloneOperation.getGitDir()); util.addConfiguredRepository(cloneOperation.getGitDir());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment