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

ASF GitHub Bot commented on NIFI-1974:
--------------------------------------

Github user markap14 commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/501#discussion_r67608435
  
    --- Diff: 
nifi-commons/nifi-properties/src/main/java/org/apache/nifi/util/NiFiProperties.java
 ---
    @@ -1073,4 +1078,28 @@ public File getEmbeddedZooKeeperPropertiesFile() {
         public boolean isStartEmbeddedZooKeeper() {
             return 
Boolean.parseBoolean(getProperty(STATE_MANAGEMENT_START_EMBEDDED_ZOOKEEPER));
         }
    +
    +    public String getVariableRegistryProperties(){
    +        return getProperty(VARIABLE_REGISTRY_PROPERTIES);
    +    }
    +
    +    public Path[] getVariableRegistryPropertiesPaths() {
    +        final List<Path> vrPropertiesPaths = new ArrayList<>();
    +
    +        final String vrPropertiesFiles = getVariableRegistryProperties();
    +        if(!StringUtils.isEmpty(vrPropertiesFiles)) {
    +
    +            final List<String> vrPropertiesFileList = 
Arrays.asList(vrPropertiesFiles.split(","));
    +
    +            for(String propertiesFile : vrPropertiesFileList){
    +                vrPropertiesPaths.add(Paths.get(propertiesFile));
    --- End diff --
    
    I think we need to call propertiesFile.trim() here


> Support Custom Properties in Expression Language
> ------------------------------------------------
>
>                 Key: NIFI-1974
>                 URL: https://issues.apache.org/jira/browse/NIFI-1974
>             Project: Apache NiFi
>          Issue Type: New Feature
>            Reporter: Yolanda M. Davis
>            Assignee: Yolanda M. Davis
>             Fix For: 1.0.0, 0.7.0
>
>
> Add a property in "nifi.properties" config file to allows users to specify a 
> list of custom properties files (containing data such as environmental 
> specific values, or sensitive values, etc.). The key/value pairs should be 
> loaded upon NIFI startup and availbale to processors for use in expression 
> languages. 
> Optimally this will lay the groundwork for a UI driven Variable Registry.



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

Reply via email to