Hello,
Can the URI used to specify the location of a property file containing the
value of a property be relative, or should it always be absolute? If it can
be relative, what is it relative to?
I couldn't find anything in the SCA Assembly Model Spec which gave the
format of the URI. All I could find was:
- file (optional) – a deferencable URI to a file containing a value
for the property
The code which currently finds the file using this URI is
*org.apache.tuscany.sca.assembly.builder.impl.PropertyUtil.loadFromFile(String
file) {
...
if (!uri.isAbsolute()) {
//FIXME Should already be given an absolute file
url = Thread.currentThread
().getContextClassLoader().getResource(file);
} else {
url = uri.toURL();
}
...
}*
***
*
If it is possible to specify a relative URI, should it be resolved using the
contribution classloader using contribution import/export to read property
files from other contributions (similar to other artifacts)?
Thank you...
Regards,
Rajini