Open jackrod opened 12 years ago
As discussed earlier with Sean, it would be nice to collapse the XML structure ->
<fileLocation file="testProperties.xml">
<list>
<location>
<decorator method="prefix">
<!-- CHECK ABC SPECIFIC FILE -->
<hostnameTag />
</decorator>
</location>
<location>
<decorator method="prefix">
<!-- CHECK HOST SPECIFIC FILE -->
<singleTag>abc</singleTag>
</decorator>
</location>
</list>
</fileLocation>
<fileLocation file="testProperties.xml">
<list>
<location>
<locationDecorators>
<hostnameTag method="prefix" />
</locationDecorators>
<keyDecorators>
<singleTag method="prefix">abc</singleTag>
</keyDecorators>
</location>
</list>
</fileLocation>
(1) Try location myserver.com.testProperties.xml for a key abc.database-url (2) MissingProperty
Open to new ideas and suggestions. ~Jack
<magic>
<commandLineLocation />
<fileLocation folder="/home/me/properties/" />
<fileLocation file="testProperties.xml">
<attempt>
<locationDecorators>
<hostnameTag method="prefix" />
</locationDecorators>
<keyDecorators>
<singleTag method="prefix">abc</singleTag>
<singleTag method="prefix">def</singleTag>
</keyDecorators>
</attempt>
</fileLocation>
<webLocation uri="https://www.bluemagic.org/magic/property/">
<attempt>
<keyDecorators>
<doubleTag method="suffix" key="version">1</doubleTag>
<hostnameTag method="suffix" />
</keyDecorators>
</attempt>
<attempt>
<keyDecorators>
<doubleTag method="suffix" key="version">1</doubleTag>
</keyDecorators>
</attempt>
</webLocation>
</magic>
The Attempt Class might be discouraged...
Currently we are supporting XML that will look for the following: abc.foo in testProperties.xml
We don't have a good way to represent: foo in abc.testProperties.xml
We need to research the most intuitive way to represent these two ideas in XML magic.xml file.