Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » invoke osgi from a .bat/.sh file
invoke osgi from a .bat/.sh file [message #87752] Tue, 08 May 2007 14:30 Go to next message
Rashmy A is currently offline Rashmy AFriend
Messages: 149
Registered: July 2009
Senior Member
Hi,

I have a requirement to write a service that performs some validations on a
data model and outputs a file with validation errors. The reason to create a
service for validation is to allow customers to contribute validation
plugins. This service should work fine within my Eclipse IDE and also in my
command line utility.

Before having a service I had a java main class in pluginA to be used within
my .bat/.sh files. For e.g.
public class ValidatorMain()
{
main( args)
{
String inputFile = args[0]
String outputFile = args[1]

Validator.performValidation( inputFile, outputFile );

}

So my .bat/.sh just had a few lines
set CLASSPATH
java com.mycompany.ValidatorMain %*

If I now create a OSGI service and create a directory structure that
contains the plugins and the config.ini file in the correct format with the
bundle configurator to load the bundles, how will I invoke it from the
command line so that I can pass in command line arguments and pass it to the
service?

Also I would appreciate if you can point me to some examples of invoking the
OSGI services from command line.
Thanks,
Rashmy
Re: invoke osgi from a .bat/.sh file [message #87799 is a reply to message #87752] Tue, 08 May 2007 22:19 Go to previous message
Eclipse UserFriend
Originally posted by: alex_blewitt.yahoo.com

I already answered this one:

http://www.eclipsezone.com/eclipse/forums/m92145206.html#921 45247

I also told you to look at the Tips and Tricks that I'd posted on the subject:

http://www.eclipsezone.com/eclipse/forums/t93976.html

Thanks,

Alex.
Previous Topic:Error with the org.eclipse.update.configurator
Next Topic:Serving both web pages and web services
Goto Forum:
  


Current Time: Fri Apr 26 13:38:07 GMT 2024

Powered by FUDForum. Page generated in 0.03090 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top