File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,36 @@ are applicable.
125125
126126### 1.2.4 The ` <property> ` and ` <propertySet> ` elements
127127
128+ It is possible to define properties to be used by the configured exporters. To do
129+ this, you can use one or more ` <property> ` elements. As shown below, this element uses
130+ the attributes with name ` key ` and ` value ` . The ` name ` attribute sometimes seen in other
131+ places for Ant build files is * not* supported.
128132
133+ ``` xml
134+ <hibernatetool
135+ destdir =" ..." >
136+ <property key =' someKey' value =' someValue' />
137+ ...
138+ </hibernatetool >
139+ ```
140+
141+ If you rather want to redefine already existing properties, you can use the ` propertySet `
142+ element. The snippet below will redefine the properties prefixed with 'foo' and replace
143+ the prefix by 'bar'.
144+
145+ ``` xml
146+ <hibernatetool
147+ destdir =" ..." >
148+ <propertySet >
149+ <propertyref prefix =" foo" />
150+ <mapper type =" glob" from =" foo*" to =" bar*" />
151+ </propertySet >
152+ ...
153+ </hibernatetool >
154+ ```
155+
156+ All the possibilities documented in the [ Ant documentation] ( https://ant.apache.org/manual/Types/propertyset.html )
157+ for the ` propertySet ` element are supported.
129158
130159### 1.2.5 The Configuration Elements
131160
You can’t perform that action at this time.
0 commit comments