Hi Jérémie,
Good catch, the configfile location is relative to karaf.base:
String basePath = System.getProperty("karaf.base");
if (finalname.indexOf("${") != -1) {
//remove any placeholder or variable part, this is not valid.
int marker = finalname.indexOf("}");
finalname = finalname.substring(marker + 1);
}
finalname = basePath + File.separator + finalname;
File file = new File(finalname);
if (file.exists() && !override) {
LOGGER.debug("configFile already exist, don't override it");
return;
}
I created the Jira:
https://issues.apache.org/jira/browse/KARAF-3262
I will fix that asap.
Regards
JB
On 10/06/2014 11:17 AM, j3rem1e wrote:
Hello,
Karaf 2.4.0 define a new property "karaf.etc", in order to move the "etc"
folder. however, i didn't find a way to install configuration files from a
features.xml 'configfile' tag.
today, i use something like
<configfile finalname="/etc/monitoring.groovy">mvn:...</configfile>
how can i install this file into ${karaf.etc}/.. ?
Regards,
Jeremie
--
View this message in context:
http://karaf.922171.n3.nabble.com/karaf-etc-and-features-configfile-tp4035642.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