annotate antlib/ToLowerCase.kt @ 30:098c4f5507c7

Convert to JDK 15.
author David Barts <n5jrn@me.com>
date Mon, 13 Jun 2022 11:31:49 -0700
parents e90d290a9a8d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
29
e90d290a9a8d Remove dependence on Nashorn.
David Barts <n5jrn@me.com>
parents:
diff changeset
1 class ToLowerCase : org.apache.tools.ant.Task() {
e90d290a9a8d Remove dependence on Nashorn.
David Barts <n5jrn@me.com>
parents:
diff changeset
2 var value: String? = null
e90d290a9a8d Remove dependence on Nashorn.
David Barts <n5jrn@me.com>
parents:
diff changeset
3 var output: String? = null
e90d290a9a8d Remove dependence on Nashorn.
David Barts <n5jrn@me.com>
parents:
diff changeset
4
e90d290a9a8d Remove dependence on Nashorn.
David Barts <n5jrn@me.com>
parents:
diff changeset
5 override fun execute(): Unit {
e90d290a9a8d Remove dependence on Nashorn.
David Barts <n5jrn@me.com>
parents:
diff changeset
6 project.setNewProperty(output, value!!.lowercase())
e90d290a9a8d Remove dependence on Nashorn.
David Barts <n5jrn@me.com>
parents:
diff changeset
7 }
e90d290a9a8d Remove dependence on Nashorn.
David Barts <n5jrn@me.com>
parents:
diff changeset
8 }