Skip to content

Commit 4144f9b

Browse files
committed
java-helloworld has moved. Remove old Cuke4Duke docs.
1 parent 978f9ef commit 4144f9b

File tree

13 files changed

+4
-497
lines changed

13 files changed

+4
-497
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ We appreciate that. But before you do, please learn our basic rules:
1111

1212
## Building Cucumber-JVM
1313

14-
Cucumber-JVM is built with [Maven](http://maven.apache.org/).
14+
Cucumber-JVM is built with [Maven](http://maven.apache.org/).
1515

1616
```
1717
mvn clean install
@@ -58,7 +58,7 @@ you have changed, and your contribution might get rejected.
5858

5959
### Running cross-platform Cucumber features
6060

61-
All Cucumber implementations (cucumber-ruby, cucumber-jvm, cucumber-js) share a common set of Cucumber features to
61+
All Cucumber implementations (cucumber-ruby, cucumber-jvm, cucumber-js) share a common set of Cucumber features to
6262
ensure all implementations support the same basic features. To run these you need to clone the cucumber-tck repo into
6363
your cucumber-jvm working copy:
6464

@@ -81,16 +81,6 @@ This can be solved by changing the Compiler settings: `Preferences -> Compiler -
8181
* *Use compiler:* `Javac`
8282
* *Additional command line parameters:* `-target 1.6 -source 1.6 -encoding UTF-8`
8383

84-
You should also use JDK 6: `Project Structure... -> Project -> Project SDK`:
85-
86-
* *Use 1.6", not 1.7
87-
88-
If you still have problems, try building the project with Maven, using Java 6:
89-
90-
```
91-
export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
92-
```
93-
9484
Note that even though development is sometimes easier to do with 1.6, releasing should be done with 1.7.
9585

9686
## Releasing

Cuke4Duke.md

Lines changed: 0 additions & 67 deletions
This file was deleted.

examples/java-helloworld/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

examples/java-helloworld/README.md

Lines changed: 2 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,3 @@
1-
## Hello World
2-
3-
This is the simplest possible setup for Cucumber-JVM using Java.
4-
5-
### Ant
6-
7-
Simply run:
8-
9-
```
10-
ant download
11-
ant runcukes
12-
```
13-
14-
This runs Cucumber features using the Command Line Interface (CLI) runner. Note that the `RunCukes` junit class is not used at all.
15-
If you remove it (and the `cucumber-junit` jar dependency), it will run just the same.
16-
17-
### Maven
18-
19-
Simply run:
20-
21-
```
22-
mvn test
23-
```
24-
25-
This runs Cucumber features using the JUnit runner. The `@RunWith(Cucumber.class)` annotation on the `RunCukes` junit class
26-
kicks off Cucumber.
27-
28-
#### Overriding options
29-
30-
The Cucumber runtime parses command line options to know what features to run, where the glue code lives, what formatters to use etc.
31-
When you use the JUnit runner, these options are generated from the `@Cucumber.Options` annotation on your test.
32-
33-
Sometimes it can be useful to override these options without changing or recompiling the JUnit class. This can be done with the
34-
`cucumber.options` system property. The general form is:
35-
36-
Using Maven:
37-
```
38-
mvn -Dcucumber.options="..." test
39-
```
40-
41-
Using Ant:
42-
```
43-
JAVA_OPTIONS='-Dcucumber.options="..."' ant runcukes
44-
```
45-
46-
Let's look at some things you can do with `cucumber.options`. Try this:
47-
```
48-
-Dcucumber.options="--help"
49-
```
50-
51-
That should list all the available options.
52-
53-
#### Run a subset of Features or Scenarios
54-
55-
Specify a particular scenario by *line* (and use the pretty format)
56-
57-
```
58-
-Dcucumber.options="classpath:cucumber/examples/java/helloworld/helloworld.feature:4 --format pretty"
59-
```
60-
61-
This works because Maven puts `./src/test/resources` on your `classpath`.
62-
You can also specify files to run by filesystem path:
63-
64-
```
65-
-Dcucumber.options="src/test/resources/cucumber/examples/java/helloworld/helloworld.feature:4 --format pretty"
66-
```
67-
68-
You can also specify what to run by *tag*:
69-
70-
```
71-
-Dcucumber.options="--tags @bar --format pretty"
72-
```
73-
74-
#### Specify a different formatter:
75-
76-
For example a JUnit formatter:
77-
```
78-
-Dcucumber.options="--format junit:target/cucumber-junit-report.xml"
79-
```
1+
## This example has moved
802

3+
Please [go here](https://github.com/cucumber/cucumber-java-skeleton).

examples/java-helloworld/build.xml

Lines changed: 0 additions & 91 deletions
This file was deleted.

examples/java-helloworld/pom.xml

Lines changed: 0 additions & 61 deletions
This file was deleted.

examples/java-helloworld/src/main/java/cucumber/examples/java/helloworld/Hello.java

Lines changed: 0 additions & 13 deletions
This file was deleted.

examples/java-helloworld/src/main/java/cucumber/examples/java/helloworld/ShoppingList.java

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)