- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for CommandLineArgumentException (0.43 sec)
-
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) -
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) -
platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/cli/DefaultCommandLineActionFactoryTest.groovy
1 * executionListener.onFailure({it instanceof CommandLineArgumentException}) 0 * executionListener._ } def "reports failure to build action due to command-line parse failure"() { def failure = new CommandLineArgumentException("<broken>") when: def commandLineExecution = factory.convert(['--some-option'])
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:29:13 UTC 2023 - 11.6K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/cli/DefaultCommandLineActionFactory.java
import org.gradle.api.launcher.cli.WelcomeMessageConfiguration; import org.gradle.api.launcher.cli.WelcomeMessageDisplayMode; 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.configuration.DefaultBuildClientMetaData; import org.gradle.configuration.GradleLauncherMetaData;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 29 06:47:38 UTC 2024 - 16.7K bytes - Viewed (0)