Skip to content

Commit c2ae8da

Browse files
committed
Added main entry point
1 parent 8f4658d commit c2ae8da

File tree

3 files changed

+49
-1
lines changed

3 files changed

+49
-1
lines changed

.idea/compiler.xml

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pom.xml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,34 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd">
4242
</goals>
4343
</execution>
4444
</executions>
45+
<configuration>
46+
<filters>
47+
<!--
48+
This is required to build an uberjar with bouncy castle
49+
https://stackoverflow.com/a/6743609/157605
50+
-->
51+
<filter>
52+
<artifact>*:*</artifact>
53+
<excludes>
54+
<exclude>META-INF/*.SF</exclude>
55+
<exclude>META-INF/*.DSA</exclude>
56+
<exclude>META-INF/*.RSA</exclude>
57+
</excludes>
58+
</filter>
59+
</filters>
60+
</configuration>
61+
</plugin>
62+
<plugin>
63+
<groupId>org.apache.maven.plugins</groupId>
64+
<artifactId>maven-jar-plugin</artifactId>
65+
<version>2.4</version>
66+
<configuration>
67+
<archive>
68+
<manifest>
69+
<mainClass>com.octopus.Main</mainClass>
70+
</manifest>
71+
</archive>
72+
</configuration>
4573
</plugin>
4674
</plugins>
4775
</build>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package com.octopus;
2+
3+
import java.io.IOException;
4+
5+
public class Main {
6+
public static void main(String[] args) {
7+
try {
8+
cucumber.api.cli.Main.run(
9+
new String[]{
10+
"--monochrome",
11+
"--glue", "com.octopus.decoratorbase",
12+
args[0]},
13+
Thread.currentThread().getContextClassLoader());
14+
} catch (IOException ex) {
15+
System.exit(1);
16+
}
17+
}
18+
}

0 commit comments

Comments
 (0)