Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for ParsedCommandLineOption (0.48 sec)

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

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package org.gradle.cli;
    
    import java.util.ArrayList;
    import java.util.List;
    
    public class ParsedCommandLineOption {
        private final List<String> values = new ArrayList<String>();
    
        public String getValue() {
            if (!hasValue()) {
                throw new IllegalStateException("Option does not have any value.");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:00:57 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  2. platforms/core-runtime/cli/src/main/java/org/gradle/cli/ParsedCommandLine.java

     * limitations under the License.
     */
    package org.gradle.cli;
    
    import java.util.*;
    
    public class ParsedCommandLine {
        private final Map<String, ParsedCommandLineOption> optionsByString = new HashMap<String, ParsedCommandLineOption>();
        private final Set<String> presentOptions = new HashSet<String>();
        private final Set<String> removedOptions = new HashSet<String>();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:00:57 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  3. platforms/core-runtime/build-option/src/test/groovy/org/gradle/internal/buildoption/ListBuildOptionTest.groovy

            options << option
            parsedCommandLine = new ParsedCommandLine(options)
            def parsedCommandLineOption = parsedCommandLine.addOption(LONG_OPTION, option)
            parsedCommandLineOption.addArgument('val1')
            parsedCommandLineOption.addArgument('val2')
            parsedCommandLineOption.addArgument('val3')
            testOption.applyFromCommandLine(parsedCommandLine, testSettings)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:02:02 UTC 2023
    - 6K bytes
    - Viewed (0)
  4. platforms/core-runtime/build-option/src/test/groovy/org/gradle/internal/buildoption/IntegerBuildOptionTest.groovy

            def option = new CommandLineOption([LONG_OPTION])
            options << option
            parsedCommandLine = new ParsedCommandLine(options)
            def parsedCommandLineOption = parsedCommandLine.addOption(LONG_OPTION, option)
            parsedCommandLineOption.addArgument(SAMPLE_VALUE.toString())
            testOption.applyFromCommandLine(parsedCommandLine, testSettings)
    
            then:
            testSettings.value == SAMPLE_VALUE
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:02:02 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/execution/commandline/CommandLineTaskConfigurer.java

    import org.gradle.api.internal.tasks.options.OptionReader;
    import org.gradle.cli.CommandLineArgumentException;
    import org.gradle.cli.CommandLineParser;
    import org.gradle.cli.ParsedCommandLine;
    import org.gradle.cli.ParsedCommandLineOption;
    import org.gradle.internal.service.scopes.Scope;
    import org.gradle.internal.service.scopes.ServiceScope;
    import org.gradle.internal.typeconversion.TypeConversionException;
    
    import java.util.Collection;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 4K bytes
    - Viewed (0)
  6. platforms/core-runtime/build-option/src/test/groovy/org/gradle/internal/buildoption/StringBuildOptionTest.groovy

            def option = new CommandLineOption([LONG_OPTION])
            options << option
            parsedCommandLine = new ParsedCommandLine(options)
            def parsedCommandLineOption = parsedCommandLine.addOption(LONG_OPTION, option)
            parsedCommandLineOption.addArgument(SAMPLE_VALUE)
            testOption.applyFromCommandLine(parsedCommandLine, testSettings)
    
            then:
            testSettings.value == SAMPLE_VALUE
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:02:02 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  7. platforms/core-runtime/cli/src/test/groovy/org/gradle/cli/ParsedCommandLineOptionSpec.groovy

     * limitations under the License.
     */
    
    package org.gradle.cli
    
    import spock.lang.Specification
    
    class ParsedCommandLineOptionSpec extends Specification {
    
        final option = new ParsedCommandLineOption();
    
        def "reports no value"() {
            when:
            option.getValue()
    
            then:
            thrown(IllegalStateException)
            !option.hasValue()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:00:57 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  8. platforms/core-runtime/cli/src/main/java/org/gradle/cli/CommandLineParser.java

                    throw new CommandLineArgumentException(String.format("No argument was provided for command-line option '%s' with description: '%s'", optionString, option.getDescription()));
                }
    
                ParsedCommandLineOption parsedOption = commandLine.addOption(optionString.option, option);
                if (values.size() + parsedOption.getValues().size() > 1 && !option.getAllowsMultipleArguments()) {
    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. testing/architecture-test/src/changes/archunit-store/internal-api-nullability.txt

    Class <org.gradle.cli.ParsedCommandLine> is not annotated (directly or via its package) with @org.gradle.api.NonNullApi in (ParsedCommandLine.java:0)
    Class <org.gradle.cli.ParsedCommandLineOption> is not annotated (directly or via its package) with @org.gradle.api.NonNullApi in (ParsedCommandLineOption.java:0)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 967.9K bytes
    - Viewed (0)
Back to top