diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2017-03-01 01:19:04 +0000 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2017-03-01 08:48:17 -0500 |
commit | 15afa8b71c4a42c1969d58c0d35e1fc3a70b16ad (patch) | |
tree | 533646cee8047a796d9f7e3b0c5eedd580c90ba1 /stage1 | |
parent | 1a2da7da5b003b8b473f67706a04256f49c86c6f (diff) | |
download | cbt-15afa8b71c4a42c1969d58c0d35e1fc3a70b16ad.tar.gz cbt-15afa8b71c4a42c1969d58c0d35e1fc3a70b16ad.tar.bz2 cbt-15afa8b71c4a42c1969d58c0d35e1fc3a70b16ad.zip |
add comprehensive, type-safe proguard plugin
this also demonstrates how to programmatically generate an extensive,
type-safe api for a stringly-typed interface
Diffstat (limited to 'stage1')
-rw-r--r-- | stage1/Stage1Lib.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stage1/Stage1Lib.scala b/stage1/Stage1Lib.scala index 71e6ee5..f2f468c 100644 --- a/stage1/Stage1Lib.scala +++ b/stage1/Stage1Lib.scala @@ -56,8 +56,8 @@ class Stage1Lib( logger: Logger ) extends BaseLib{ def write(file: File, content: String, options: OpenOption*): File = Stage0Lib.write(file, content, options:_*) - def download(url: URL, target: File, sha1: Option[String]): Boolean = { - if( target.exists ){ + def download(url: URL, target: File, sha1: Option[String], replace: Boolean = false): Boolean = { + if( target.exists && !replace ){ logger.resolver(green("found ") ++ url.string) true } else { |