diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2017-03-05 06:30:03 -0500 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2017-03-05 06:30:03 -0500 |
commit | a0b8651fee9dca977c22a598d680746f1373e97c (patch) | |
tree | c9a405db81db4007150c75487e86e62e4d2e3898 /stage2/plugins | |
parent | 5cd8bc68728f6968310d3d1bbb382c14de53b601 (diff) | |
download | cbt-a0b8651fee9dca977c22a598d680746f1373e97c.tar.gz cbt-a0b8651fee9dca977c22a598d680746f1373e97c.tar.bz2 cbt-a0b8651fee9dca977c22a598d680746f1373e97c.zip |
improve whitespace readability in proguard plugin
Diffstat (limited to 'stage2/plugins')
-rw-r--r-- | stage2/plugins/GeneratedSections.scala | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/stage2/plugins/GeneratedSections.scala b/stage2/plugins/GeneratedSections.scala index 417278c..dc065cf 100644 --- a/stage2/plugins/GeneratedSections.scala +++ b/stage2/plugins/GeneratedSections.scala @@ -26,14 +26,7 @@ trait GeneratedSections extends BaseBuild{ }.getOrElse(subject) } - val updated = sourceFiles.flatMap{ file => - val template = file.readAsString - val replaced = replaceSections( template, replacements ) - if( template != replaced ) { - write( file.toPath, replaced.getBytes ) - Some(file) - } else None - } + val updated = lib.transformFiles( sourceFiles, replaceSections( _, replacements ) ) logger.log("generated-sections","Updated:" + updated.map(_ ++ "\n").mkString) } |