tcmartin24
Programmer
Is there a way to assign part of a target's definition to a variable so it can be reused in other targets? Something like this (but this doesn't work):
--------------------------------------
<property name="mappings">
<otherMapping name="resource" value="com.blah.File"/>
</property>
<target name="myTarget">
<hibernatecfg blah="blah" foo="bar">
${mappings}
</hibernatecfg>
</target>
--------------------------------------
So the text defined in the property "mappings" gets placed where I have the '${mappings}' variable. Notice my use of the <property> element doesn't specify a 'value' attribute because I need the value to be possibly several lines containing quotes and things. Is there some element like 'property' that'll let me do this?
Thanks
--------------------------------------
<property name="mappings">
<otherMapping name="resource" value="com.blah.File"/>
</property>
<target name="myTarget">
<hibernatecfg blah="blah" foo="bar">
${mappings}
</hibernatecfg>
</target>
--------------------------------------
So the text defined in the property "mappings" gets placed where I have the '${mappings}' variable. Notice my use of the <property> element doesn't specify a 'value' attribute because I need the value to be possibly several lines containing quotes and things. Is there some element like 'property' that'll let me do this?
Thanks