|
| 1 | +<!-- |
| 2 | + ~ Copyright 2004 - 2025 Red Hat, Inc. |
| 3 | + ~ |
| 4 | + ~ Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | + ~ you may not use this file except in compliance with the License. |
| 6 | + ~ You may obtain a copy of the License at |
| 7 | + ~ |
| 8 | + ~ http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | + ~ |
| 10 | + ~ Unless required by applicable law or agreed to in writing, software |
| 11 | + ~ distributed under the License is distributed on an "AS IS" basis, |
| 12 | + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | + ~ See the License for the specific language governing permissions and |
| 14 | + ~ limitations under the License. |
| 15 | + --> |
| 16 | +<project name="native" default="reveng"> |
| 17 | + |
| 18 | + <!-- Include the 'hibernatetool' task definition from the file '../common/included.xml' --> |
| 19 | + <include file="../common/included.xml"/> |
| 20 | + |
| 21 | + <target name="clean"> |
| 22 | + <!-- Delete the folder 'generated-sources' if it exists --> |
| 23 | + <delete dir="generated-sources"/> |
| 24 | + <delete file="Foo.class"/> |
| 25 | + </target> |
| 26 | + |
| 27 | + <target name="compile" depends="clean"> |
| 28 | + <!-- Compile the custom exporter 'HelloExporter' --> |
| 29 | + <javac srcdir="." destdir="." classpathref="classpath"/> |
| 30 | + </target> |
| 31 | + |
| 32 | + <target name="reveng" depends="compile"> |
| 33 | + <hibernatetool destdir="generated-sources"> |
| 34 | + <classpath location="."/> |
| 35 | + <!-- Native configuration read from 'hibernate.cfg.xml' --> |
| 36 | + <configuration configurationfile="hibernate.cfg.xml"/> |
| 37 | + <hbm2ddl outputfilename="foo.sql"/> |
| 38 | + </hibernatetool> |
| 39 | + </target> |
| 40 | + |
| 41 | +</project> |
| 42 | + |
0 commit comments