Add new parameter in Nuxeo.conf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2015 05:37 PM
Hi, Through Nuxeo IDE I have created a listener in nuxeo. Now in that listener I run some antivirus service for which I need to configure IP of the machine where the antivirus is running. Now to configure that IP I need to add some new parameter in nuxeo.conf. So, can any one help me to know how can I add new parameter in nuxeo.conf and also how to read it from my listener.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2015 12:41 PM
Just add whatever parameter you want in nuxeo.conf
like:
your.custom.parameter=thevalue
Then read it from your code using:
String value = Framework.getProperty("your.custom.parameter");
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2015 09:18 AM
If you want to test it from the IDE, if I'm not mistaken, you have to add it in nuxeo-sdk.conf too.
