From c2ae8da3bb24386afd9d11884e535effa77296df Mon Sep 17 00:00:00 2001 From: Matthew Casperson Date: Fri, 13 Sep 2019 10:34:19 +1000 Subject: [PATCH] Added main entry point --- .idea/compiler.xml | 4 +++- pom.xml | 28 ++++++++++++++++++++++++++++ src/main/java/com/octopus/Main.java | 18 ++++++++++++++++++ 3 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 src/main/java/com/octopus/Main.java diff --git a/.idea/compiler.xml b/.idea/compiler.xml index 02106f07..af41282e 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -7,8 +7,10 @@ - + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml index 7e80e11f..4b16eab2 100644 --- a/pom.xml +++ b/pom.xml @@ -42,6 +42,34 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> + + + + + *:* + + META-INF/*.SF + META-INF/*.DSA + META-INF/*.RSA + + + + + + + org.apache.maven.plugins + maven-jar-plugin + 2.4 + + + + com.octopus.Main + + + diff --git a/src/main/java/com/octopus/Main.java b/src/main/java/com/octopus/Main.java new file mode 100644 index 00000000..9c883891 --- /dev/null +++ b/src/main/java/com/octopus/Main.java @@ -0,0 +1,18 @@ +package com.octopus; + +import java.io.IOException; + +public class Main { + public static void main(String[] args) { + try { + cucumber.api.cli.Main.run( + new String[]{ + "--monochrome", + "--glue", "com.octopus.decoratorbase", + args[0]}, + Thread.currentThread().getContextClassLoader()); + } catch (IOException ex) { + System.exit(1); + } + } +}