diff --git a/ant/docs/examples/classpath/.gitignore b/ant/docs/examples/classpath/.gitignore new file mode 100644 index 0000000000..8265f4e18a --- /dev/null +++ b/ant/docs/examples/classpath/.gitignore @@ -0,0 +1 @@ +additional/classes \ No newline at end of file diff --git a/ant/docs/examples/classpath/additional/src/HelloExporter.java b/ant/docs/examples/classpath/additional/src/HelloExporter.java new file mode 100644 index 0000000000..d066f1619a --- /dev/null +++ b/ant/docs/examples/classpath/additional/src/HelloExporter.java @@ -0,0 +1,33 @@ +/* + * Hibernate Tools, Tooling for your Hibernate Projects + * + * Copyright 2004-2025 Red Hat, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import org.hibernate.tool.api.export.Exporter; + +import java.util.Properties; + +public class HelloExporter implements Exporter { + + @Override + public Properties getProperties() { + return new Properties(); + } + + @Override + public void start() { + System.out.println("Hello from Exporter!"); + } +} \ No newline at end of file diff --git a/ant/docs/examples/classpath/build.xml b/ant/docs/examples/classpath/build.xml new file mode 100644 index 0000000000..648c4eca2b --- /dev/null +++ b/ant/docs/examples/classpath/build.xml @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +