Hi,

At runtime ?

It's possible at builder time (using filtering), but not at runtime.

In your case, you can set the directory containing the jar files in etc/org.ops4j.pax.url.mvn.cfg (and you can use system variable there).

Regards
JB

On 08/26/2015 09:38 PM, mnki wrote:
I added a feature in karaf features xml

<feature name="dummy-feature" version="1.1.1">
<bundle>file:${MY_VARIABLE}/temp.jar</bundle>
</feature>
MY_VARIABLE is the system property that has the directory path.

But when i try to install the feature i am getting error.

Invalid syntax for instruction [{MY_VARIABLE}/temp.jar]. Take a look at
http://www.aqute.biz/Code/Bnd.
In the karaf console when i enter ${MY_VARIABLE} i see the value that i have
set



--
View this message in context: 
http://karaf.922171.n3.nabble.com/How-to-access-System-properies-in-karaf-features-file-tp4042073.html
Sent from the Karaf - User mailing list archive at Nabble.com.


--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to