newsinjector-conf.xml file
newsinjector-conf.xml file contains NewsInjector configuration.
It is a part of NewsInjector installation and is available under:
.../newsinjector/WEB-INF/newsinjector-conf.xml
Default file has the following content:
<configuration>
<!-- Directory where news feeds will be stored. -->
<newsDirectory>$home/.newsinjector/</newsDirectory>
<!--
Specify if it is allowed to create new and delete existing
news feeds from the user interface.
-->
<feedCreationEnabled>true</feedCreationEnabled>
<feedDeletionEnabled>true</feedDeletionEnabled>
</configuration>
Changing Configuration
Default values are suitable for most installations but you may change them if necessary.
You may either modify newsinjector/WEB-INF/newsinjector-conf.xml file directly or copy it to the classpath and adjust it there. newsinjector-conf.xml located in the classpath has a priority over the one located in WEB-INF.
For example, on a tomcat you may execute:
cd tomcat/ cp webapps/newsinjector/WEB-INF/newsinjector-conf.xml shared/classes/
Later, when you install new version of NewsInjector it will load correct configuration values from shared/classes/newsinjector-conf.xml file.
<newsDirectory>
Specifies file system directory where news are stored. Default value is:
$home/.newsinjector/
Variable $home points to the user's home directory and is OS dependent. It is usually:
- C:\Documents and Settings\<username>\ - on Windows
- /home/<user-id>/ - on Linux
- /Users/<user-id>/ - on Mac
You may specify any other directory, e.g.:
<newsDirectory>/var/news/</newsDirectory>
NewsInjector must have read-write access to the specified directory.
<feedCreationEnabled>
Specifies whether news feeds may be created in NewsInjector from browser.
By default feed creation is enabled.
To disable news feed creation change value from true to false:
<feedCreationEnabled>false</feedCreationEnabled>
<feedDeletionEnabled>
Specifies whether news feeds may be deleted in NewsInjector from browser.
By default feed deletion is enabled.
To disable news feed deletion change value from true to false:
<feedDeletionEnabled>false</feedDeletionEnabled>
It is also possible to disable deletion of each news feed separately.