Skip to content

Commit

Permalink
change the exception handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Baranowski committed Apr 12, 2012
1 parent 956a09a commit ce9002b
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -11,6 +11,7 @@ public class KarafFrameworkFactory implements FrameworkFactory {
@Override
public Framework newFramework(Map configuration) {
// the karaf installation folder must be setup
// TODO: find a better way to define the karaf.home folder?
String karafHomeFolder = (String) configuration.get("karaf.home");
if (karafHomeFolder == null) {
return null;
Expand All @@ -35,10 +36,9 @@ public Framework newFramework(Map configuration) {
try {
main.launch();
return main.getFramework();
} catch (Exception e) {
e.printStackTrace();
} catch (Exception exp) {
throw new RuntimeException(exp);
}
return null;
}

}

0 comments on commit ce9002b

Please sign in to comment.