A pseudo-Builder wrapper for creating standalone JAR files with the kotlinc executable. kotlinc [options] file -d target -include-runtime
(env, target, source=None, *args, **kw)
| 133 | |
| 134 | |
| 135 | def KotlinRuntimeJar(env, target, source=None, *args, **kw): |
| 136 | """ |
| 137 | A pseudo-Builder wrapper for creating standalone JAR files with the kotlinc executable. |
| 138 | kotlinc [options] file -d target -include-runtime |
| 139 | """ |
| 140 | if not SCons.Util.is_List(target): |
| 141 | target = [target] |
| 142 | if not source: |
| 143 | source = target[:] |
| 144 | if not SCons.Util.is_List(source): |
| 145 | source = [source] |
| 146 | |
| 147 | result = [] |
| 148 | for t, s in zip(target, source): |
| 149 | # Call builder |
| 150 | kotlin_jar = kotlin_rtjar_builder.__call__(env, t, s, **kw) |
| 151 | result.extend(kotlin_jar) |
| 152 | |
| 153 | return result |
| 154 | |
| 155 | |
| 156 | def generate(env): |
nothing calls this directly
no outgoing calls
no test coverage detected