You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@taverna.apache.org by st...@apache.org on 2015/02/17 12:37:59 UTC
[44/50] [abbrv] incubator-taverna-commandline git commit: Updated
COMMANDLINE_BUNDLE_NAME
Updated COMMANDLINE_BUNDLE_NAME
Project: http://git-wip-us.apache.org/repos/asf/incubator-taverna-commandline/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-taverna-commandline/commit/5ba148f2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-taverna-commandline/tree/5ba148f2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-taverna-commandline/diff/5ba148f2
Branch: refs/heads/master
Commit: 5ba148f211d5c7919d83762bd2414ee1cff88293
Parents: bf51ad1
Author: Stian Soiland-Reyes <st...@apache.org>
Authored: Tue Jan 6 13:17:11 2015 +0000
Committer: Stian Soiland-Reyes <st...@apache.org>
Committed: Tue Jan 6 13:17:11 2015 +0000
----------------------------------------------------------------------
.../java/uk/org/taverna/commandline/TavernaCommandLine.java | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-taverna-commandline/blob/5ba148f2/taverna-commandline-launcher/src/main/java/uk/org/taverna/commandline/TavernaCommandLine.java
----------------------------------------------------------------------
diff --git a/taverna-commandline-launcher/src/main/java/uk/org/taverna/commandline/TavernaCommandLine.java b/taverna-commandline-launcher/src/main/java/uk/org/taverna/commandline/TavernaCommandLine.java
index a462ba3..426ab98 100644
--- a/taverna-commandline-launcher/src/main/java/uk/org/taverna/commandline/TavernaCommandLine.java
+++ b/taverna-commandline-launcher/src/main/java/uk/org/taverna/commandline/TavernaCommandLine.java
@@ -49,9 +49,9 @@ import uk.org.taverna.osgi.OsgiLauncher;
*/
public class TavernaCommandLine {
- private static final String COMMANDLINE_BUNDLE_NAME = "net.sf.taverna.t2.taverna-commandline.common";
+ private static final String COMMANDLINE_BUNDLE_NAME = "org.apache.taverna.commandline.taverna-commandline-common";
- private static File commandlineBundle;
+ private static File commandlineBundle = null;
private static ApplicationConfiguration applicationConfiguration = new ApplicationConfigurationImpl();
@@ -79,6 +79,10 @@ public class TavernaCommandLine {
context.registerService("net.sf.taverna.t2.commandline.options.CommandLineOptions",
commandLineOptions, null);
osgilauncher.startServices(true);
+ if (commandlineBundle == null) {
+ System.err.println("Can't locate command line bundle " + COMMANDLINE_BUNDLE_NAME);
+ System.exit(1);
+ }
osgilauncher.startBundle(osgilauncher.installBundle(commandlineBundle.toURI()));
}
} catch (ArgumentsParsingException e) {