Skip to content

Commit 7afc906

Browse files
committed
Move code generation code into non-standard directory
IDEA tries to be helpful when opening a project and assumes that `src/main/groovy` contains production code. While conventionally true, this isn't the case for this project. Avoiding this assumption makes opening the project a bit easier. Fixes: #61
1 parent cfacf53 commit 7afc906

File tree

5 files changed

+16
-8
lines changed

5 files changed

+16
-8
lines changed

.gitignore

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
.idea
1+
.idea
22
*.iml
3-
4-
target
5-
63

7-
examples/pom.xml.releaseBackup
8-
groovy/pom.xml.releaseBackup
4+
target
5+
6+
dependency-reduced-pom.xml
97
pom.xml.releaseBackup
108
release.properties
119

10+

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,12 @@ See: https://cucumber.io/support
2525
## They are using it
2626

2727
You are using Cucumber Groovy? We would love to know about you! Please open a PR to add your project or company to the list below.
28+
29+
30+
## Contributing
31+
32+
To build the project run:
33+
34+
```shell
35+
mvn verify
36+
```

groovy/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@
163163
<configuration>
164164
<target>
165165
<taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy" classpathref="maven.plugin.classpath" />
166-
<groovy src="src/main/groovy/generate-keywords.groovy" />
166+
<groovy src="src/main/codegen/generate-keywords.groovy" />
167167
</target>
168168
</configuration>
169169
</execution>
File renamed without changes.

groovy/src/main/groovy/generate-keywords.groovy renamed to groovy/src/main/codegen/generate-keywords.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import groovy.text.SimpleTemplateEngine
22
import io.cucumber.gherkin.GherkinDialects
33

44
def engine = new SimpleTemplateEngine()
5-
def templateSource = new File(project.baseDir, "${File.separator}src${File.separator}main${File.separator}groovy${File.separator}I18n.groovy.gsp").getText()
5+
def templateSource = new File(project.baseDir, "${File.separator}src${File.separator}main${File.separator}codegen${File.separator}I18n.groovy.gsp").getText()
66

77
def unsupported = ["EM"] // The generated files for Emoij do not compile.
88

0 commit comments

Comments
 (0)