Skip to content

Commit

Permalink
Added main entry point
Browse files Browse the repository at this point in the history
  • Loading branch information
mcasperson committed Sep 13, 2019
1 parent 8f4658d commit c2ae8da
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,34 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd">
</goals>
</execution>
</executions>
<configuration>
<filters>
<!--
This is required to build an uberjar with bouncy castle
https://stackoverflow.com/a/6743609/157605
-->
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<configuration>
<archive>
<manifest>
<mainClass>com.octopus.Main</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
</build>
Expand Down
18 changes: 18 additions & 0 deletions src/main/java/com/octopus/Main.java
Original file line number Diff line number Diff line change
@@ -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);
}
}
}

0 comments on commit c2ae8da

Please sign in to comment.