Coder Social home page Coder Social logo

vorburger / ch.vorburger.karaf.simple Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 12 KB

demo illustration how to run Apache Karaf (OSGi runtime middleware) Commands without Karaf and OSGi

License: Apache License 2.0

Java 100.00%
apache-karaf osgi-console osgi

ch.vorburger.karaf.simple's Introduction

ch.vorburger.karaf.simple

Demo illustrating how to run custom Apache Karaf (OSGi runtime middleware) commands without actually requiring Karaf and OSGi.

See opendaylight-simple for more background what motivated this.

Build

mvn clean install

Traditional Karaf usage

karaf@root()> bundle:install -s file:///home/YOURUID/.m2/repository/ch/vorburger/karaf/command/1.0.0-SNAPSHOT/ch.vorburger.karaf.command-1.0.0-SNAPSHOT.jar
karaf@root(test)> test:test --help
karaf@root(test)> test:test -o opt arg
Executing command test
Option: opt
Argument: arg

New simple distribution package usage

java -jar distribution/simple/target/distribution-1.0.0-SNAPSHOT-jar-with-dependencies.jar

karaf@root(test)> test:test -o opt arg
Executing command test
Option: opt
Argument: arg

TODO

  1. How to support SSH server in simple?

  2. How to enable stopping the simple dist? ;) Ctrl-D does work, usual commands don't:

    karaf@root()> exit
    karaf@root()> logout      
    Command not found: logout  
    karaf@root()> system:shutdown
    Command not found: system:shutdown
    
  3. How to add --help in simple?

    karaf@root()> test:test --help
    karaf@root()> help test:test
    

ch.vorburger.karaf.simple's People

Contributors

vorburger avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.