[ 
https://issues.apache.org/jira/browse/FELIX-1481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12742828#action_12742828
 ] 

Richard S. Hall commented on FELIX-1481:
----------------------------------------

I don't think the pattern matcher you mention would work, because I don't think 
it handles nesting like the current code does, e.g., 
"${jre-${java.specification.version}}". It is necessary to start at the 
innermost match.

However, I think not throwing an exception for unmatched delimiters is probably 
fine.

> When performing variable substitution, fileinstall throws an exception if 
> there is a start or stop delimiter without the other one
> ----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-1481
>                 URL: https://issues.apache.org/jira/browse/FELIX-1481
>             Project: Felix
>          Issue Type: Bug
>          Components: File Install
>            Reporter: Guillaume Nodet
>             Fix For: fileinstall-1.4.0
>
>         Attachments: FELIX-1481.patch
>
>
> This is a real problem as there is no way to escape the delimiters currently.
> I think silently discard any malformed substitution would be much better, 
> else any value containing a '}' will cause the config to not be loaded at all.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to