I am using Apache ACE for deploying OSGI bundles to targets,I am successfully able to do it manually using apace ace UI , but when I try to do it via running a shell script in "Gogo Shell client API" I am unable to check whether a feature exists or an association exists before creating one.Also I am unable to delete associations between artifacts and features via scripts in the shell. Any ideas on this would be really helpful. Thanks
Using Apache ACE for automatic OSGI software distribution
122 Views Asked by Shridhar At
1
There are 1 best solutions below
Related Questions in OSGI
- Singleton to OSGi Declarative Services: Seeking Guidance
- How to use ExecutorService in Kubernetes PODs
- Liferay DXP Service builder @BeanReference field is null
- cant start bundle on apache felix
- Java OSGi implementation for the project
- How to update the resource property using the valuemap in the Sling servlet?
- Drools 8 OSGi support
- OSGi: missing requirement osgi.wiring.package with local bundle
- How to find correct AEM constant class names?
- KieServices are not injecting with guice
- Unknown OSGi execution environment: 'JavaSE-21'
- Java on AWS/EKS fails with resolving correct version of org.osgi.framework.launch.FrameworkFactory
- osgi.extender; (osgi.extender=osgi.serviceloader.registrar) in Jenkins
- How can i get the service ref after i changed org.apache.felix.scr.annotations to org.osgi.service.component.annotations
- Install feature webconsole in karaf 4.3.10 error needs osgi.http (not sure which jar package)
Related Questions in SOFTWARE-DISTRIBUTION
- How to handle distro versions in Yocto
- Distribute msvcr90.dll without the rest of Microsoft.VC90.CRT?
- Npm package upgrade notification availlable?
- How to release binaries on Github for different platforms as separate downloads?
- Symfony2; distribute a "minimized" app
- How to create installer for mac software
- python platform doesn't recognized Ubuntu distribution
- How to install wheels within setup.py
- How to create Python module installer on Windows without including source files
- Nodewebkit app takes time to load in windows
- Distributing python app with all dependencies
- Distributable fpga design
- Is it safe to package C++11 software on current Linux distributions?
- Using two different Python Distributions
- Deploying basic java app for distribution
Related Questions in APACHE-ACE
- Is there any way to upload Artifacts to the Apache ACE server without Web UI?
- How to store artifacts at targets using Apache ACE?
- Set ACE target launcher's internal server port to Bluemix's random port number
- when does Apache felix perform signature verification of a OSGI bundle .jar file?
- Running gogo shell client api commands via shell script
- Using Apache ACE for automatic OSGI software distribution
- How to add custom bundles part of the Target?
- Connecting to Apache Ace Server with Custom Launcher
- Apache ACE Agent integration with Apache Felix embedded in Tomcat?
- Apache Ace as a Service
- Apache ACE together with Apache Felix embedded in Tomcat?
- Adding Apache ACE target configuration files
- Failure in artifact upload in Apache ACE
- Integrate Apache ACE with Equinox
- Adding targets in Apache ACE
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
To check if a feature or association exists, you can query for it with the "lf" (for features) command on the workspace. For example, if you want to check if a feature called "test" exists, you can use:
The first line lists all features that match the pattern. It returns a collection. The second line grabs the first item from the list (if it exists) and based on that one of the clauses of the "if" is executed. You can condense this in a single line if you want, I split it up for clarity.
Deleting a feature or association goes like this:
Which deletes all features matching the expression, or if you already have a feature object in a shell variable:
Same goes for associations, for example between an artifact and a feature, let's say you want to delete an association between a bundle with a specific symbolic name and a feature called test:
Note that I needed to escape the brackets in the leftEndpoint and rightEndpoint values as
\\28and\\29as we cannot directly use them in an expression.