Drop "-jar" and "-output" kotlinc-jvm CLI arguments

In favor of a brand new "-d" option
This commit is contained in:
Alexander Udalov
2014-07-26 00:29:57 +04:00
parent 9908d797e0
commit 99025de748
8 changed files with 3 additions and 21 deletions
+1 -1
View File
@@ -567,7 +567,7 @@
<enable/>
</assertions>
<arg line="@{src}"/>
<arg value="-output"/>
<arg value="-d"/>
<arg value="@{output}"/>
<arg value="-noStdlib"/>
<arg value="-classpath"/>
@@ -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) {
-2
View File
@@ -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
View File
@@ -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
View File
@@ -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