diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-07-04 10:43:47 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-07-04 10:43:47 +0100 |
| commit | 8cac5140ee16f34753cd9c207a09c87767cdad71 (patch) | |
| tree | 1713934e87687b8265bd9a5939ab2584d810aa06 | |
| parent | d6e0d3b3560f2a09187f255e43227d4b42642bc9 (diff) | |
Execute example Java programs
| -rw-r--r-- | examples/01-struct/output/java/pom.xml | 1 | ||||
| -rw-r--r-- | examples/02-sum/output/java/pom.xml | 1 | ||||
| -rw-r--r-- | examples/03-inductive-data-types/output/java/pom.xml | 1 | ||||
| -rw-r--r-- | examples/04-enum/output/java/pom.xml | 1 | ||||
| -rw-r--r-- | examples/05-list/output/java/pom.xml | 1 | ||||
| -rw-r--r-- | examples/06-native-type/output/java/pom.xml | 1 | ||||
| -rw-r--r-- | examples/07-native-type-custom-config/output/java/pom.xml | 1 | ||||
| -rw-r--r-- | examples/08-custom-code/output/java/pom.xml | 1 | ||||
| -rw-r--r-- | examples/09-imports/output/java/pom.xml | 1 | ||||
| -rw-r--r-- | src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java | 2 |
10 files changed, 10 insertions, 1 deletions
diff --git a/examples/01-struct/output/java/pom.xml b/examples/01-struct/output/java/pom.xml index 506947e..7f892e1 100644 --- a/examples/01-struct/output/java/pom.xml +++ b/examples/01-struct/output/java/pom.xml @@ -11,6 +11,7 @@ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>25</maven.compiler.source> <maven.compiler.target>25</maven.compiler.target> + <exec.mainClass>org.zwobble.example.Main</exec.mainClass> </properties> <dependencies> diff --git a/examples/02-sum/output/java/pom.xml b/examples/02-sum/output/java/pom.xml index 7493667..0035469 100644 --- a/examples/02-sum/output/java/pom.xml +++ b/examples/02-sum/output/java/pom.xml @@ -11,6 +11,7 @@ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>25</maven.compiler.source> <maven.compiler.target>25</maven.compiler.target> + <exec.mainClass>org.zwobble.example.Main</exec.mainClass> </properties> <build> diff --git a/examples/03-inductive-data-types/output/java/pom.xml b/examples/03-inductive-data-types/output/java/pom.xml index 7493667..0035469 100644 --- a/examples/03-inductive-data-types/output/java/pom.xml +++ b/examples/03-inductive-data-types/output/java/pom.xml @@ -11,6 +11,7 @@ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>25</maven.compiler.source> <maven.compiler.target>25</maven.compiler.target> + <exec.mainClass>org.zwobble.example.Main</exec.mainClass> </properties> <build> diff --git a/examples/04-enum/output/java/pom.xml b/examples/04-enum/output/java/pom.xml index 506947e..7f892e1 100644 --- a/examples/04-enum/output/java/pom.xml +++ b/examples/04-enum/output/java/pom.xml @@ -11,6 +11,7 @@ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>25</maven.compiler.source> <maven.compiler.target>25</maven.compiler.target> + <exec.mainClass>org.zwobble.example.Main</exec.mainClass> </properties> <dependencies> diff --git a/examples/05-list/output/java/pom.xml b/examples/05-list/output/java/pom.xml index 7493667..0035469 100644 --- a/examples/05-list/output/java/pom.xml +++ b/examples/05-list/output/java/pom.xml @@ -11,6 +11,7 @@ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>25</maven.compiler.source> <maven.compiler.target>25</maven.compiler.target> + <exec.mainClass>org.zwobble.example.Main</exec.mainClass> </properties> <build> diff --git a/examples/06-native-type/output/java/pom.xml b/examples/06-native-type/output/java/pom.xml index 7493667..0035469 100644 --- a/examples/06-native-type/output/java/pom.xml +++ b/examples/06-native-type/output/java/pom.xml @@ -11,6 +11,7 @@ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>25</maven.compiler.source> <maven.compiler.target>25</maven.compiler.target> + <exec.mainClass>org.zwobble.example.Main</exec.mainClass> </properties> <build> diff --git a/examples/07-native-type-custom-config/output/java/pom.xml b/examples/07-native-type-custom-config/output/java/pom.xml index 7493667..0035469 100644 --- a/examples/07-native-type-custom-config/output/java/pom.xml +++ b/examples/07-native-type-custom-config/output/java/pom.xml @@ -11,6 +11,7 @@ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>25</maven.compiler.source> <maven.compiler.target>25</maven.compiler.target> + <exec.mainClass>org.zwobble.example.Main</exec.mainClass> </properties> <build> diff --git a/examples/08-custom-code/output/java/pom.xml b/examples/08-custom-code/output/java/pom.xml index 7493667..0035469 100644 --- a/examples/08-custom-code/output/java/pom.xml +++ b/examples/08-custom-code/output/java/pom.xml @@ -11,6 +11,7 @@ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>25</maven.compiler.source> <maven.compiler.target>25</maven.compiler.target> + <exec.mainClass>org.zwobble.example.Main</exec.mainClass> </properties> <build> diff --git a/examples/09-imports/output/java/pom.xml b/examples/09-imports/output/java/pom.xml index 506947e..7f892e1 100644 --- a/examples/09-imports/output/java/pom.xml +++ b/examples/09-imports/output/java/pom.xml @@ -11,6 +11,7 @@ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>25</maven.compiler.source> <maven.compiler.target>25</maven.compiler.target> + <exec.mainClass>org.zwobble.example.Main</exec.mainClass> </properties> <dependencies> diff --git a/src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java b/src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java index 82a6ef3..80d0507 100644 --- a/src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java +++ b/src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java @@ -31,7 +31,7 @@ public class ExampleTests { } private void verifyJavaOutput(ExampleSet exampleSet) throws NoSuchAlgorithmException, IOException, InterruptedException { - verifyOutput(exampleSet, "java", List.of("mvn", "compile")); + verifyOutput(exampleSet, "java", List.of("mvn", "compile", "exec:java")); } private void verifyRustOutput(ExampleSet exampleSet) throws NoSuchAlgorithmException, IOException, InterruptedException { |
