2 Replies Latest reply on Jul 19, 2014 3:12 AM by davsclaus

    Extending Karaf Console, get Karaf home dir

    virchete

      Hi,

       

      I am working for Jboss Overlord. We deploy our application in fuse and fuse fabric. I am trying to create a new karaf console command that basically what has to do is to modify some properties files located in the etc folder.  I am following this base example:

       

      http://karaf.apache.org/manual/latest-2.2.x/developers-guide/extending-console.html

       

      Then in the command I need to get the KARAF HOME. I tried getting System.getProperty("KARAF_HOME") but the response was null.

       

      Could you guide me on how to take the KARAF HOME from the command?

       

      Thanks

      David