chucknorris / uppercut

UppercuT - Professional builds in moments, not days!
http://projectuppercut.org
68 stars 17 forks source link

Implement xml content as value in settings #17

Closed jordanwallwork closed 8 years ago

jordanwallwork commented 8 years ago

Allows using xml in propertys like:

<project>
    <propery name="regular.usage" value="simple property value" />
    <property name="settings.with.xml">
        <xmlParent>
            <child num="1" />
            <child num="2" />
        </xmlParent>
    </property>
</project>
jordanwallwork commented 8 years ago

Yeah exactly, and then this gives you the flexibility to use xml as a property value. I know it's possible to do something like:

<property name="settings.with.xml" value="<xmlParent><child num='2' /><child num='2' /></xmlParent>" />

But this quickly become unwieldy for larger values (for my use case, I've got a custom configuration section and need to be able to insert arbitrary xml per environment).

ferventcoder commented 8 years ago

@drusellers thoughts? This LGTM.

drusellers commented 8 years ago

@ferventcoder I like it

ferventcoder commented 8 years ago

Thanks @jordanwallwork !