foundweekends / foundweekends/giter8
Folder Template does not work properly on Windows
- Dominant language
- Scala
- Stars
- 1.8k
- Forks
- 225
- Avg merge
- 2h 35m
- Merged PRs (30d)
- 8
Description
## steps
I setup my template as follows to support both java and scala templates. This can be decided by using the scala respectively java parameter (true/false)
src/main/$if(java.truthy)$java$endif$/$package$/Class.scala
src/main/$if(scala.truthy)$scala$endif$/$package$/Class.java
## problem
If i run this template on Windows using sbt new file://{templatepath} (SBT 1.5.5)
if java = true and scala = false it will produce the following dirs:
src/main/java/{package}/Class.java
src/main/{package}/Class.scala
and if scala = true and java = false to:
src/main/scala/{package}/Class.scala
src/main/{package}/Class.java
Which is not as expected
## expectation
this should be evaluated if java = true and scala = false to:
src/main/java/{package}/Class.java
and if scala = true and java = false to:
src/main/scala/{package}/Class.scala
This works properly on an Unix System (SBT 1.5.5) but does not work correctly on an Windows machine (SBT 1.5.5) (using the same template)
## notes
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the template with `sbt new file://{templatepath}` on Windows using SBT 1.5.5, testing both java=true/scala=false and scala=true/java=false. Compare the generated paths with the Unix results and the expected paths in the issue; done means only the selected language directory is created and the file is placed there.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- scala
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100