nifi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markap14 <...@git.apache.org>
Subject [GitHub] nifi pull request #501: NIFI-1974 - Support Custom Properties in Expression ...
Date Sun, 19 Jun 2016 00:19:40 GMT
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


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message