001    /**
002     *
003     * Licensed to the Apache Software Foundation (ASF) under one or more
004     * contributor license agreements.  See the NOTICE file distributed with
005     * this work for additional information regarding copyright ownership.
006     * The ASF licenses this file to You under the Apache License, Version 2.0
007     * (the "License"); you may not use this file except in compliance with
008     * the License.  You may obtain a copy of the License at
009     *
010     * http://www.apache.org/licenses/LICENSE-2.0
011     *
012     * Unless required by applicable law or agreed to in writing, software
013     * distributed under the License is distributed on an "AS IS" BASIS,
014     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015     * See the License for the specific language governing permissions and
016     * limitations under the License.
017     */
018    package org.jetbrains.jet.cli.common.arguments;
019    
020    import com.sampullara.cli.Argument;
021    
022    /**
023     * Command line arguments for the {@link K2JVMCompiler}
024     */
025    @SuppressWarnings("UnusedDeclaration")
026    public class K2JVMCompilerArguments extends CommonCompilerArguments {
027        @Argument(value = "jar", description = "jar file name")
028        public String jar;
029    
030        @Argument(value = "src", description = "source file or directory (allows many paths separated by the system path separator)")
031        public String src;
032    
033        @Argument(value = "classpath", description = "classpath to use when compiling")
034        public String classpath;
035    
036        @Argument(value = "annotations", description = "paths to external annotations")
037        public String annotations;
038    
039        @Argument(value = "includeRuntime", description = "include Kotlin runtime in to resulting jar")
040        public boolean includeRuntime;
041    
042        @Argument(value = "noJdk", description = "don't include Java runtime into classpath")
043        public boolean noJdk;
044    
045        @Argument(value = "noStdlib", description = "don't include Kotlin runtime into classpath")
046        public boolean noStdlib;
047    
048        @Argument(value = "noJdkAnnotations", description = "don't include JDK external annotations into classpath")
049        public boolean noJdkAnnotations;
050    
051        @Argument(value = "notNullAssertions", description = "generate not-null assertion after each invocation of method returning not-null")
052        public boolean notNullAssertions;
053    
054        @Argument(value = "notNullParamAssertions", description = "generate not-null assertions on parameters of methods accessible from Java")
055        public boolean notNullParamAssertions;
056    
057        @Argument(value = "output", description = "output directory")
058        public String outputDir;
059    
060        @Argument(value = "module", description = "module to compile")
061        public String module;
062    
063        @Argument(value = "script", description = "evaluate script")
064        public boolean script;
065    
066        @Argument(value = "kotlinHome", description = "Path to Kotlin compiler home directory, used for annotations and runtime libraries discovery")
067        public String kotlinHome;
068    
069        @Argument(value = "inline", description = "Inlining mode: on/off or true/false (default is on)")
070        public String inline;
071    }