public static final String TEMPLATE_PATH = "templatePath";
public static final String OUTPUT_PATH_KEY = "output";
public static final String PREFIX_KEY = "prefix";
- public final static String REQUIRED_PARAMETERS_ERROR_MESSAGE = "templateName & outputPath are required fields";
+ public static final String REQUIRED_PARAMETERS_ERROR_MESSAGE = "templateName & outputPath are required fields";
protected static final String TEMPLATE_PROPERTIES_FILE_NAME = "template-node.properties";
protected static final String DEFAULT_PROPERTIES_DIR = "/opt/onap/ccsdk/data/properties";
protected static final String PROPERTIES_DIR_KEY = "SDNC_CONFIG_DIR";
ve = new VelocityEngine();
setProperties();
ve.init();
- ve.loadDirective("org.onap.ccsdk.sli.plugins.template.HideNullJson");
}
protected void setProperties() {
try (FileInputStream in = new FileInputStream(configDir + "/" + TEMPLATE_PROPERTIES_FILE_NAME)) {
props.load(in);
} catch (Exception e) {
- logger.error("Caught exception loading properties!", e);
+ logger.warn("Properties not loaded for template node, using sensible defaults. " + e.getMessage());
}
// give sensible defaults for required properties
}
}
-}
\ No newline at end of file
+}