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

Function KotlinJar

builders/kotlin.py:114–132  ·  view source on GitHub ↗

A pseudo-Builder wrapper for creating JAR files with the kotlinc executable. kotlinc [options] file -d target

(env, target, source=None, *args, **kw)

Source from the content-addressed store, hash-verified

112
113
114def KotlinJar(env, target, source=None, *args, **kw):
115 """
116 A pseudo-Builder wrapper for creating JAR files with the kotlinc executable.
117 kotlinc [options] file -d target
118 """
119 if not SCons.Util.is_List(target):
120 target = [target]
121 if not source:
122 source = target[:]
123 if not SCons.Util.is_List(source):
124 source = [source]
125
126 result = []
127 for t, s in zip(target, source):
128 # Call builder
129 kotlin_jar = kotlin_jar_builder.__call__(env, t, s, **kw)
130 result.extend(kotlin_jar)
131
132 return result
133
134
135def KotlinRuntimeJar(env, target, source=None, *args, **kw):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected