Skip to content

Commit

Permalink
Support windows file separators (and share tests)
Browse files Browse the repository at this point in the history
  • Loading branch information
shafirov committed Sep 25, 2014
1 parent c0d41c2 commit 5961a9f
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .idea/runConfigurations/SwotTest.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/swot/Compiler.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fun main(args: Array<String>) {
val root = File("lib/domains")
root.recurse {
if (it.isFile()) {
val parts = root.relativePath(it).trimTrailing(".txt").split('/').toList()
val parts = root.relativePath(it).replace('\\', '/').trimTrailing(".txt").split('/').toList()
if (!checkSet(CompilationState.blacklist, parts) && !checkSet(CompilationState.domains, parts)) {
CompilationState.domains.add(parts.reverse().join("."))
}
Expand Down

0 comments on commit 5961a9f

Please sign in to comment.