aboutsummaryrefslogtreecommitdiff
path: root/stage2/Scaffold.scala
diff options
context:
space:
mode:
authorJan Christopher Vogt <oss.nsp@cvogt.org>2016-04-02 16:06:40 -0400
committerJan Christopher Vogt <oss.nsp@cvogt.org>2016-04-02 16:06:40 -0400
commit63b54f79c10854e38b2a4a43ee39f508458e280f (patch)
tree6a5791efedc2d297cfac1ad8bbaac0b090105149 /stage2/Scaffold.scala
parent16b02cf34078113c833225297b686752aa26b407 (diff)
parentefe68c7e710aa8c54144715408b7faca36f52c27 (diff)
downloadcbt-63b54f79c10854e38b2a4a43ee39f508458e280f.tar.gz
cbt-63b54f79c10854e38b2a4a43ee39f508458e280f.tar.bz2
cbt-63b54f79c10854e38b2a4a43ee39f508458e280f.zip
Rewrite CBT's classloading and dependency classloaders, fetch zinc early and various smaller changes
Rewrite CBT's classloading and dependency classloaders, fetch zinc early and various smaller changes
Diffstat (limited to 'stage2/Scaffold.scala')
-rw-r--r--stage2/Scaffold.scala7
1 files changed, 4 insertions, 3 deletions
diff --git a/stage2/Scaffold.scala b/stage2/Scaffold.scala
index e181ebf..3dcb9ae 100644
--- a/stage2/Scaffold.scala
+++ b/stage2/Scaffold.scala
@@ -1,13 +1,14 @@
package cbt
import java.io._
+import java.nio.file._
import java.net._
-import ammonite.ops.{cwd => _,_}
-
trait Scaffold{
def logger: Logger
private def createFile( projectDirectory: File, fileName: String, code: String ){
- write( Path( projectDirectory.string ++ "/" ++ fileName ), code )
+ val outputFile = projectDirectory ++ ("/" ++ fileName)
+ outputFile.getParentFile.mkdirs
+ Files.write( ( outputFile ).toPath, code.getBytes, StandardOpenOption.CREATE_NEW )
import scala.Console._
println( GREEN ++ "Created " ++ fileName ++ RESET )
}