deltaspike-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John D. Ament" <johndam...@apache.org>
Subject Re: DeltaSpike configuration with absolute path of a properties file
Date Wed, 26 Nov 2014 13:27:59 GMT
What value did you provide?  All of the property file loading is done via
URLs, so if I had to guess you need file://

https://github.com/apache/deltaspike/blob/master/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/util/PropertyFileUtils.java

John


On Wed Nov 26 2014 at 7:47:22 AM Pablo Pita <pablo.pita@gmail.com> wrote:

> Hello,
>
> I would like to use DeltaSpike configuration mechanisms using a properties
> file which is not in the classpath. I had no success by implementing
> MyPropertyFileConfig and returning the absolute path of the file in the
> String getPropertyFileName() method. Is there a simple way to load a
> property file that is not in the classpath?
>
> Thanks for any hints,
> --
> Pablo Pita Leira
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message