Drop "-jar" and "-output" kotlinc-jvm CLI arguments
In favor of a brand new "-d" option
This commit is contained in:
@@ -567,7 +567,7 @@
|
||||
<enable/>
|
||||
</assertions>
|
||||
<arg line="@{src}"/>
|
||||
<arg value="-output"/>
|
||||
<arg value="-d"/>
|
||||
<arg value="@{output}"/>
|
||||
<arg value="-noStdlib"/>
|
||||
<arg value="-classpath"/>
|
||||
|
||||
-8
@@ -28,14 +28,6 @@ public class K2JVMCompilerArguments extends CommonCompilerArguments {
|
||||
@ValueDescription("<directory|jar>")
|
||||
public String destination;
|
||||
|
||||
@Argument(value = "jar", description = "Resulting .jar file path")
|
||||
@ValueDescription("<path>")
|
||||
public String jar;
|
||||
|
||||
@Argument(value = "output", description = "Output directory path for .class files")
|
||||
@ValueDescription("<path>")
|
||||
public String outputDir;
|
||||
|
||||
@Argument(value = "classpath", description = "Paths where to find user class files")
|
||||
@ValueDescription("<path>")
|
||||
public String classpath;
|
||||
|
||||
@@ -127,8 +127,8 @@ public class K2JVMCompiler extends CLICompiler<K2JVMCompilerArguments> {
|
||||
outputDir = isJar ? null : new File(destination);
|
||||
}
|
||||
else {
|
||||
jar = arguments.jar != null ? new File(arguments.jar) : null;
|
||||
outputDir = arguments.outputDir != null ? new File(arguments.outputDir) : null;
|
||||
jar = null;
|
||||
outputDir = null;
|
||||
}
|
||||
|
||||
if (arguments.module != null) {
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
Usage: kotlinc-jvm <options> <source files>
|
||||
where possible options include:
|
||||
-d <directory|jar> Destination for generated class files
|
||||
-jar <path> Resulting .jar file path
|
||||
-output <path> Output directory path for .class files
|
||||
-classpath <path> Paths where to find user class files
|
||||
-annotations <path> Paths to external annotations
|
||||
-includeRuntime Include Kotlin runtime in to resulting .jar
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
Usage: kotlinc-jvm <options> <source files>
|
||||
where possible options include:
|
||||
-d <directory|jar> Destination for generated class files
|
||||
-jar <path> Resulting .jar file path
|
||||
-output <path> Output directory path for .class files
|
||||
-classpath <path> Paths where to find user class files
|
||||
-annotations <path> Paths to external annotations
|
||||
-includeRuntime Include Kotlin runtime in to resulting .jar
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
Usage: kotlinc-jvm <options> <source files>
|
||||
where possible options include:
|
||||
-d <directory|jar> Destination for generated class files
|
||||
-jar <path> Resulting .jar file path
|
||||
-output <path> Output directory path for .class files
|
||||
-classpath <path> Paths where to find user class files
|
||||
-annotations <path> Paths to external annotations
|
||||
-includeRuntime Include Kotlin runtime in to resulting .jar
|
||||
|
||||
@@ -2,8 +2,6 @@ Wrong value for inline option: 'wrong'. Should be 'on'/'off' or 'true'/'false'
|
||||
Usage: kotlinc-jvm <options> <source files>
|
||||
where possible options include:
|
||||
-d <directory|jar> Destination for generated class files
|
||||
-jar <path> Resulting .jar file path
|
||||
-output <path> Output directory path for .class files
|
||||
-classpath <path> Paths where to find user class files
|
||||
-annotations <path> Paths to external annotations
|
||||
-includeRuntime Include Kotlin runtime in to resulting .jar
|
||||
|
||||
@@ -2,8 +2,6 @@ Invalid argument: -wrongArgument
|
||||
Usage: kotlinc-jvm <options> <source files>
|
||||
where possible options include:
|
||||
-d <directory|jar> Destination for generated class files
|
||||
-jar <path> Resulting .jar file path
|
||||
-output <path> Output directory path for .class files
|
||||
-classpath <path> Paths where to find user class files
|
||||
-annotations <path> Paths to external annotations
|
||||
-includeRuntime Include Kotlin runtime in to resulting .jar
|
||||
|
||||
Reference in New Issue
Block a user