From 9bc9dc4ce673ca8c1458246883f0a6026a2dc1aa Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 16 Jun 2026 21:58:13 +0100 Subject: Add import example --- examples/06-imports/output/java/.gitignore | 2 + examples/06-imports/output/java/pom.xml | 47 ++++++++++++++++++++++ .../src/main/java/org/zwobble/example/Main.java | 11 +++++ 3 files changed, 60 insertions(+) create mode 100644 examples/06-imports/output/java/.gitignore create mode 100644 examples/06-imports/output/java/pom.xml create mode 100644 examples/06-imports/output/java/src/main/java/org/zwobble/example/Main.java (limited to 'examples/06-imports/output/java') diff --git a/examples/06-imports/output/java/.gitignore b/examples/06-imports/output/java/.gitignore new file mode 100644 index 0000000..ff511d4 --- /dev/null +++ b/examples/06-imports/output/java/.gitignore @@ -0,0 +1,2 @@ +/src/gen/ +/target/ diff --git a/examples/06-imports/output/java/pom.xml b/examples/06-imports/output/java/pom.xml new file mode 100644 index 0000000..506947e --- /dev/null +++ b/examples/06-imports/output/java/pom.xml @@ -0,0 +1,47 @@ + + 4.0.0 + + org.zwobble.hobgoblin.examples + example + 1.0-SNAPSHOT + + + UTF-8 + 25 + 25 + + + + + org.zwobble.precisely + precisely + 0.1.5 + + + + + + + org.codehaus.mojo + build-helper-maven-plugin + 3.6.1 + + + add-source + generate-sources + + add-source + + + + src/gen/java + + + + + + + + diff --git a/examples/06-imports/output/java/src/main/java/org/zwobble/example/Main.java b/examples/06-imports/output/java/src/main/java/org/zwobble/example/Main.java new file mode 100644 index 0000000..5a48480 --- /dev/null +++ b/examples/06-imports/output/java/src/main/java/org/zwobble/example/Main.java @@ -0,0 +1,11 @@ +package org.zwobble.example; + +import org.zwobble.example.types.point.Point; + +public class Main { + public static void main() { + Point point = new Point(10, 25); + int x = point.x(); + int y = point.y(); + } +} -- cgit v1.2.3