Tuesday, 15 September 2015

spring - Mule 3.3 ignore-resource-not-found -



spring - Mule 3.3 ignore-resource-not-found -

i'm using mule studio 1.3.2, corresponds mule 3.3 believe.

i'm using property-placeholder element. wanted utilize technique described here of having optional override file. however, ignore-resource-not-found attribute beingness flagged error in mule studio: attribute ignore-resource-not-found not defined valid property of property-placeholder

<context:property-placeholder location="classpath:config.properties" ignore-resource-not-found="true" />

is broken or doing silly?

mule 3.3 uses spring context 3.1 schema

which supports ignore-resource-not-found attribute

<xsd:complextype name="propertyplaceholder"> <xsd:attribute name="location" type="xsd:string">...</xsd:attribute> <xsd:attribute name="properties-ref" type="xsd:string">...</xsd:attribute> <xsd:attribute name="file-encoding" type="xsd:string">...</xsd:attribute> <xsd:attribute name="order" type="xsd:integer">...</xsd:attribute> <xsd:attribute name="ignore-resource-not-found" type="xsd:boolean" default="false"> <xsd:annotation> <xsd:documentation><![cdata[specifies if failure find property resource location should ignored. default "false", meaning if there no file in location specified exception raised @ runtime.]]> </xsd:documentation> </xsd:annotation> </xsd:attribute> <xsd:attribute name="ignore-unresolvable" type="xsd:boolean" default="false">... </xsd:attribute> <xsd:attribute name="local-override" type="xsd:boolean" default="false">...</xsd:attribute> </xsd:complextype>

so, you're doing right thing

spring properties mule

No comments:

Post a Comment