|
13 | 13 | ~ See the License for the specific language governing permissions and |
14 | 14 | ~ limitations under the License. |
15 | 15 | --> |
16 | | -<project xmlns:ivy="antlib:org.apache.ivy.ant"> |
| 16 | +<project name="classpath" default="reveng"> |
17 | 17 |
|
18 | | - <property name="hibernate-tools.version" value="7.0.0.CR1"/> |
19 | | - <property name="jdbc-driver.org" value="com.h2database"/> |
20 | | - <property name="jdbc-driver.module" value="h2"/> |
21 | | - <property name="jdbc-driver.version" value="2.3.232"/> |
22 | | - |
23 | | - <ivy:cachepath |
24 | | - organisation="org.hibernate.tool" |
25 | | - module="hibernate-tools-ant" |
26 | | - revision="${hibernate-tools.version}" |
27 | | - pathid="hibernate-tools.path" |
28 | | - inline="true"/> |
29 | | - <ivy:cachepath |
30 | | - organisation="${jdbc-driver.org}" |
31 | | - module="${jdbc-driver.module}" |
32 | | - revision="${jdbc-driver.version}" |
33 | | - pathid="jdbc-driver.path" |
34 | | - inline="true"/> |
35 | | - |
36 | | - <path id="classpath"> |
37 | | - <path refid="hibernate-tools.path"/> |
38 | | - <path refid="jdbc-driver.path"/> |
39 | | - </path> |
40 | | - |
41 | | - <taskdef |
42 | | - name="hibernatetool" |
43 | | - classname="org.hibernate.tool.ant.HibernateToolTask" |
44 | | - classpathref="classpath" /> |
| 18 | + <!-- Include the 'hibernatetool' task definition from the file '../common/included.xml' --> |
| 19 | + <include file="../common/included.xml"/> |
45 | 20 |
|
46 | 21 | <target name="clean"> |
| 22 | + <!-- Delete the folder 'additional/classes if it exists --> |
47 | 23 | <delete dir="additional/classes"/> |
48 | 24 | </target> |
49 | 25 |
|
|
59 | 35 |
|
60 | 36 | <target name="reveng" depends="compile"> |
61 | 37 | <hibernatetool destdir="generated-sources"> |
62 | | - <!-- The classpath to be used by the 'hibernatetool' task |
63 | | - to look up additional classes or resources --> |
| 38 | + <!-- The classpath to be used by the 'hibernatetool' task to look up additional classes or resources --> |
64 | 39 | <classpath> |
65 | 40 | <pathelement location="additional/classes"/> |
66 | 41 | </classpath> |
|
0 commit comments