MCPcopy Create free account
hub / github.com/algorithm-archivists/algorithm-archive / KotlinRuntimeJar

Function KotlinRuntimeJar

builders/kotlin.py:135–153  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

133
134
135def 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
156def generate(env):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected