diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-07-02 10:56:36 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-07-02 10:56:36 +0100 |
| commit | 7ecc00c036ae9380bafa80060dc35756195e9c1a (patch) | |
| tree | 9b4b911cc1df68b4a02de8a8e108a2760215eeac /examples/07-imports/output/java | |
| parent | 0568d7e77dbe004864e19a75a2216e233fbfad2b (diff) | |
Split native type example to example with/without custom config
Diffstat (limited to 'examples/07-imports/output/java')
| -rw-r--r-- | examples/07-imports/output/java/.gitignore | 2 | ||||
| -rw-r--r-- | examples/07-imports/output/java/pom.xml | 47 | ||||
| -rw-r--r-- | examples/07-imports/output/java/src/main/java/org/zwobble/example/Main.java | 12 |
3 files changed, 61 insertions, 0 deletions
diff --git a/examples/07-imports/output/java/.gitignore b/examples/07-imports/output/java/.gitignore new file mode 100644 index 0000000..ff511d4 --- /dev/null +++ b/examples/07-imports/output/java/.gitignore @@ -0,0 +1,2 @@ +/src/gen/ +/target/ diff --git a/examples/07-imports/output/java/pom.xml b/examples/07-imports/output/java/pom.xml new file mode 100644 index 0000000..506947e --- /dev/null +++ b/examples/07-imports/output/java/pom.xml @@ -0,0 +1,47 @@ +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <groupId>org.zwobble.hobgoblin.examples</groupId> + <artifactId>example</artifactId> + <version>1.0-SNAPSHOT</version> + + <properties> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + <maven.compiler.source>25</maven.compiler.source> + <maven.compiler.target>25</maven.compiler.target> + </properties> + + <dependencies> + <dependency> + <groupId>org.zwobble.precisely</groupId> + <artifactId>precisely</artifactId> + <version>0.1.5</version> + </dependency> + </dependencies> + + <build> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>build-helper-maven-plugin</artifactId> + <version>3.6.1</version> + <executions> + <execution> + <id>add-source</id> + <phase>generate-sources</phase> + <goals> + <goal>add-source</goal> + </goals> + <configuration> + <sources> + <source>src/gen/java</source> + </sources> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> +</project> diff --git a/examples/07-imports/output/java/src/main/java/org/zwobble/example/Main.java b/examples/07-imports/output/java/src/main/java/org/zwobble/example/Main.java new file mode 100644 index 0000000..3535c16 --- /dev/null +++ b/examples/07-imports/output/java/src/main/java/org/zwobble/example/Main.java @@ -0,0 +1,12 @@ +package org.zwobble.example; + +import org.zwobble.example.types.line.Line; +import org.zwobble.example.types.point.Point; + +public class Main { + public static void main() { + Point start = new Point(10, 25); + Point end = new Point(25, 10); + Line line = new Line(start, end); + } +} |
