Add JS DCE gradle plugin
This commit is contained in:
@@ -28,6 +28,8 @@ open class DefaultValues(val defaultValue: String, val possibleValues: List<Stri
|
||||
|
||||
object StringNullDefault : DefaultValues("null")
|
||||
|
||||
object ListEmptyDefault : DefaultValues("<empty list>")
|
||||
|
||||
object LanguageVersions : DefaultValues(
|
||||
"null",
|
||||
LanguageVersion.values().map { "\"${it.description}\"" }
|
||||
|
||||
+18
-17
@@ -14,27 +14,28 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.cli.common.arguments
|
||||
package org.jetbrains.kotlin.cli.common.arguments;
|
||||
|
||||
class K2JSDceArguments : CommonToolArguments() {
|
||||
companion object {
|
||||
const val serialVersionUID = 0L
|
||||
}
|
||||
public class K2JSDceArguments extends CommonToolArguments {
|
||||
private static final long serialVersionUID = 0;
|
||||
|
||||
@field:GradleOption(DefaultValues.StringNullDefault::class)
|
||||
@field:Argument(value = "-output-dir", valueDescription = "<path>", description = "Output directory")
|
||||
@JvmField
|
||||
var outputDirectory: String? = null
|
||||
@Argument(
|
||||
value = "-output-dir",
|
||||
valueDescription = "<path>",
|
||||
description = "Output directory"
|
||||
)
|
||||
public String outputDirectory;
|
||||
|
||||
@field:Argument(
|
||||
@Argument(
|
||||
value = "-keep",
|
||||
valueDescription = "<fully.qualified.name[,]>",
|
||||
description = "List of fully-qualified names of declarations that shouldn't be eliminated")
|
||||
@JvmField
|
||||
var declarationsToKeep: Array<String>? = null
|
||||
description = "List of fully-qualified names of declarations that shouldn't be eliminated"
|
||||
)
|
||||
public String[] declarationsToKeep;
|
||||
|
||||
@field:GradleOption(DefaultValues.BooleanFalseDefault::class)
|
||||
@field:Argument(value = "-Xprint-reachability-info", description = "Print declarations marked as reachable")
|
||||
@JvmField
|
||||
var printReachabilityInfo: Boolean = false
|
||||
@Argument(
|
||||
value = "-Xprint-reachability-info",
|
||||
description = "Print declarations marked as reachable"
|
||||
)
|
||||
public boolean printReachabilityInfo;
|
||||
}
|
||||
Reference in New Issue
Block a user