summaryrefslogtreecommitdiff
path: root/scalalib/test/src/GenIdeaTests.scala
diff options
context:
space:
mode:
authorAndres Pipicello <andres.pipicello@olx.com>2019-06-18 15:25:16 -0300
committerTobias Roeser <le.petit.fou@web.de>2019-06-28 08:37:39 +0200
commit1ae2061ca5ba6eecf18d4b17203717526d1b3d39 (patch)
tree9a232fd347701548ba44b84029f5b30f113225a0 /scalalib/test/src/GenIdeaTests.scala
parentc2c64bbbc4034fdfbd9bc4da56f25fef3cd68f63 (diff)
downloadmill-1ae2061ca5ba6eecf18d4b17203717526d1b3d39.tar.gz
mill-1ae2061ca5ba6eecf18d4b17203717526d1b3d39.tar.bz2
mill-1ae2061ca5ba6eecf18d4b17203717526d1b3d39.zip
Using mill source path instead of pwd
Diffstat (limited to 'scalalib/test/src/GenIdeaTests.scala')
-rw-r--r--scalalib/test/src/GenIdeaTests.scala10
1 files changed, 5 insertions, 5 deletions
diff --git a/scalalib/test/src/GenIdeaTests.scala b/scalalib/test/src/GenIdeaTests.scala
index efd6381c..b7d3a257 100644
--- a/scalalib/test/src/GenIdeaTests.scala
+++ b/scalalib/test/src/GenIdeaTests.scala
@@ -13,17 +13,17 @@ object GenIdeaTests extends ScriptTestSuite(false) {
Seq(
s"$workspaceSlug/idea_modules/helloworld.iml" ->
- os.pwd / ".idea_modules" /"helloworld.iml",
+ workspacePath / ".idea_modules" /"helloworld.iml",
s"$workspaceSlug/idea_modules/helloworld.test.iml" ->
- os.pwd / ".idea_modules" /"helloworld.test.iml",
+ workspacePath / ".idea_modules" /"helloworld.test.iml",
// s"$workspaceSlug/idea_modules/mill-build.iml" ->
// os.pwd / ".idea_modules" /"mill-build.iml",
s"$workspaceSlug/idea/libraries/scala-library-2.12.4.jar.xml" ->
- os.pwd / ".idea" / "libraries" / "scala-library-2.12.4.jar.xml",
+ workspacePath / ".idea" / "libraries" / "scala-library-2.12.4.jar.xml",
s"$workspaceSlug/idea/modules.xml" ->
- os.pwd / ".idea" / "modules.xml",
+ workspacePath / ".idea" / "modules.xml",
s"$workspaceSlug/idea/misc.xml" ->
- os.pwd / ".idea" / "misc.xml"
+ workspacePath / ".idea" / "misc.xml"
).foreach { case (resource, generated) =>
val resourceString = scala.io.Source.fromResource(resource).getLines().mkString("\n")
val generatedString = normaliseLibraryPaths(os.read(generated))