Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,8 @@ project/boot/

### Kit

brutaltester
brutaltester

### Vi
*.swp

6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ The example Bot [Ghost in the Cell](https://www.codingame.com/multiplayer/bot-pr

5. Open CodinGame Sync to synchronize Player.scala file continuously to online IDE

## CodinGame Scala Kit integration into your own git depo

Using CodinGame Scala Kit as a git submodule inside your own git depot you can both store your solutions into
a private depot, and still use and contribute to this scala kit.
[All instructions are available within this example project](https://github.com/dacr/codingame-with-scalakit-example)

## Screenshot
![alt tag](./asset/screenshot.png)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.truelaurel.codingame.tool.bundle

import java.io.{File, PrintWriter}
import java.nio.file.{Files, Paths}
import java.nio.file.{Files, Paths, FileVisitOption}
import java.util.Objects

import scala.io.Source
Expand Down Expand Up @@ -55,7 +55,7 @@ case class StdBundlerIo(srcFolder: String = "./src/main/scala") extends BundlerI
}

def findFile(fileName: String): File = {
Files.find(Paths.get("src"), Int.MaxValue, (path, _) => path.endsWith(fileName))
Files.find(Paths.get("src"), Int.MaxValue, (path, _) => path.endsWith(fileName), FileVisitOption.FOLLOW_LINKS)
.findAny()
.orElseThrow(() => new IllegalArgumentException(s"$fileName not found"))
.toFile
Expand Down