Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for CommandLineArgumentException (0.43 sec)

  1. platforms/core-runtime/cli/src/main/java/org/gradle/cli/CommandLineArgumentException.java

     */
    package org.gradle.cli;
    
    /**
     * A {@code CommandLineArgumentException} is thrown when command-line arguments cannot be parsed.
     */
    public class CommandLineArgumentException extends RuntimeException {
        public CommandLineArgumentException(String message) {
            super(message);
        }
    
        public CommandLineArgumentException(String message, Throwable cause) {
            super(message, cause);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:00:57 UTC 2023
    - 1019 bytes
    - Viewed (0)
  2. platforms/core-runtime/build-option/src/main/java/org/gradle/internal/buildoption/BuildOptionSet.java

     * limitations under the License.
     */
    
    package org.gradle.internal.buildoption;
    
    import org.gradle.cli.AbstractCommandLineConverter;
    import org.gradle.cli.CommandLineArgumentException;
    import org.gradle.cli.CommandLineConverter;
    import org.gradle.cli.CommandLineParser;
    import org.gradle.cli.ParsedCommandLine;
    
    import java.util.List;
    import java.util.Map;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 31 11:25:33 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. platforms/core-runtime/build-option/src/main/java/org/gradle/internal/buildoption/PropertiesConverter.java

     * limitations under the License.
     */
    
    package org.gradle.internal.buildoption;
    
    import org.gradle.cli.CommandLineArgumentException;
    
    import java.util.Map;
    
    public interface PropertiesConverter<T> {
        T convert(Map<String, String> properties, T target) throws CommandLineArgumentException;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 31 11:25:33 UTC 2024
    - 872 bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/initialization/ParallelismConfigurationCommandLineConverterTest.groovy

            convert("--max-workers", value);
    
            then:
            thrown(CommandLineArgumentException)
    
            where:
            value << ["foo", "0"]
        }
    
        def "throws exception for invalid max workers argument when converting"() {
            when:
            convert("--max-workers", "-1")
    
            then:
            Throwable t = thrown(CommandLineArgumentException)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 07 06:09:06 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  5. platforms/core-runtime/build-option/src/main/java/org/gradle/internal/buildoption/Origin.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle.internal.buildoption;
    
    import org.gradle.cli.CommandLineArgumentException;
    import org.gradle.util.internal.TextUtil;
    
    public abstract class Origin {
        protected String source;
    
        public static Origin forGradleProperty(String gradleProperty) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:02:02 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  6. platforms/core-runtime/cli/src/test/groovy/org/gradle/cli/CommandLineParserTest.groovy

            parser.parse(['-a'])
    
            then:
            def e = thrown(CommandLineArgumentException)
            e.message == 'Unknown command-line option \'-a\'.'
        }
    
        def parseFailsWhenCommandLineContainsUnknownShortOptionWithDoubleDashes() {
            when:
            parser.parse(['--a'])
    
            then:
            def e = thrown(CommandLineArgumentException)
            e.message == 'Unknown command-line option \'--a\'.'
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:00:57 UTC 2023
    - 20.8K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/initialization/LayoutCommandLineConverter.java

     * limitations under the License.
     */
    
    package org.gradle.initialization;
    
    import org.gradle.cli.AbstractCommandLineConverter;
    import org.gradle.cli.CommandLineArgumentException;
    import org.gradle.cli.CommandLineConverter;
    import org.gradle.cli.CommandLineParser;
    import org.gradle.cli.ParsedCommandLine;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 02 09:26:15 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  8. platforms/core-runtime/cli/src/main/java/org/gradle/cli/CommandLineParser.java

         *
         * @param commandLine The command-line.
         * @return The parsed command line.
         * @throws org.gradle.cli.CommandLineArgumentException
         *          On parse failure.
         */
        public ParsedCommandLine parse(String... commandLine) throws CommandLineArgumentException {
            return parse(Arrays.asList(commandLine));
        }
    
        /**
         * Parses the given command-line.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  9. platforms/core-runtime/cli/src/main/java/org/gradle/cli/CommandLineConverter.java

     * limitations under the License.
     */
    package org.gradle.cli;
    
    public interface CommandLineConverter<T> {
        T convert(Iterable<String> args, T target) throws CommandLineArgumentException;
    
        T convert(ParsedCommandLine args, T target) throws CommandLineArgumentException;
    
        void configure(CommandLineParser parser);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:00:57 UTC 2023
    - 903 bytes
    - Viewed (0)
  10. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/cli/converter/StartParameterConverter.java

    import org.gradle.api.internal.StartParameterInternal;
    import org.gradle.api.launcher.cli.WelcomeMessageConfiguration;
    import org.gradle.api.logging.configuration.LoggingConfiguration;
    import org.gradle.cli.CommandLineArgumentException;
    import org.gradle.cli.CommandLineParser;
    import org.gradle.cli.ParsedCommandLine;
    import org.gradle.cli.ProjectPropertiesCommandLineConverter;
    import org.gradle.concurrent.ParallelismConfiguration;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 31 11:25:33 UTC 2024
    - 3.8K bytes
    - Viewed (0)
Back to top