Skip to content

Commit 7d2b87d

Browse files
committed
HBX-2984: Create Reference Guide for Ant
- Complete the section for 'property' and 'propertySet' configuration Signed-off-by: Koen Aers <[email protected]>
1 parent 0c0765d commit 7d2b87d

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

ant/docs/reference-guide.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)