Skip to content

Commit

Permalink
Update the name of compression tool installation task
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsonlee committed May 26, 2019
1 parent b92786a commit 7698599
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class SimpleCompressionTaskCreator(private val cmdline: CompressionTool, private
}

private fun BaseVariant.createCompressionToolIfNotExists(): Task {
val name = "install${cmdline.name.capitalize()}"
val name = "install${cmdline.name.substringBefore('.').capitalize()}"
return project.tasks.findByName(name) ?: project.tasks.create(name, InstallCompressor::class.java) {
it.outputs.upToDateWhen { false }
it.cmdline = cmdline
Expand Down

0 comments on commit 7698599

Please sign in to comment.