You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Gerhard Petracek (JIRA)" <ji...@apache.org> on 2014/11/17 19:29:36 UTC

[jira] [Commented] (DELTASPIKE-750) No error message if the filename provided PropertyFileConfig implementation isn't found.

    [ https://issues.apache.org/jira/browse/DELTASPIKE-750?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14214954#comment-14214954 ] 

Gerhard Petracek commented on DELTASPIKE-750:
---------------------------------------------

since we also need to support optional config-files, i've added #isOptional to PropertyFileConfig

> No error message if the filename provided PropertyFileConfig implementation isn't found.
> ----------------------------------------------------------------------------------------
>
>                 Key: DELTASPIKE-750
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-750
>             Project: DeltaSpike
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 1.0.3
>            Reporter: Corey Puffalt
>            Assignee: Gerhard Petracek
>             Fix For: 1.1.1
>
>
> As per summary, I have a simple PropertyFileConfig implementation class providing a configuration filename for the configuration module to pick up, but I've been frustrated by the lack of error handling because it just quietly ignores invalid/missing filenames instead of providing an error message.
> Ideally, an issue like this would prevent bootstrapping and fail-fast with a relevant error message.
> I'm not familiar enough with the code base to be sure but it looks to me like  this should be fixed in PropertyFileUtils.resolvePropertyFiles() which should throw a FileNotFoundException if it doesn't find the given file on the classpath?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)