Search Options

Results per page
Sort
Preferred Languages
Advance

Results 2071 - 2080 of 6,241 for If (0.03 sec)

  1. internal/store/batch.go

    	Log           logger
    }
    
    // Add adds the item to the batch
    func (b *Batch[I]) Add(item I) error {
    	b.Lock()
    	defer b.Unlock()
    
    	if b.isFull() {
    		if b.store == nil {
    			return ErrBatchFull
    		}
    		// commit batch to store
    		if err := b.commit(); err != nil {
    			return err
    		}
    	}
    
    	b.items = append(b.items, item)
    	return nil
    }
    
    // Len returns the no of items in the batch
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/profiles/ProfilesConversionUtils.java

            if (profileActivation != null) {
                Activation activation = new Activation();
    
                activation.setActiveByDefault(profileActivation.isActiveByDefault());
    
                activation.setJdk(profileActivation.getJdk());
    
                org.apache.maven.profiles.ActivationProperty profileProp = profileActivation.getProperty();
    
                if (profileProp != null) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. impl/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulator.java

            String localRepositoryPath = null;
    
            if (request.getLocalRepositoryPath() != null) {
                localRepositoryPath = request.getLocalRepositoryPath().getAbsolutePath();
            }
    
            if (localRepositoryPath == null || localRepositoryPath.isEmpty()) {
                String path = request.getUserProperties().getProperty(Constants.MAVEN_USER_CONF);
                if (path == null) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  4. cmd/admin-handlers-users-race_test.go

    	err = s.adm.AddCannedPolicy(ctx, policy, policyBytes)
    	if err != nil {
    		c.Fatalf("policy add error: %v", err)
    	}
    
    	userCount := 50
    	accessKeys := make([]string, userCount)
    	secretKeys := make([]string, userCount)
    	for i := 0; i < userCount; i++ {
    		accessKey, secretKey := mustGenerateCredentials(c)
    		err = s.adm.SetUser(ctx, accessKey, secretKey, madmin.AccountEnabled)
    		if err != nil {
    			c.Fatalf("Unable to set user: %v", err)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 28 09:06:25 UTC 2024
    - 4K bytes
    - Viewed (0)
  5. cmd/warm-backend-minio.go

    	// Validation of credentials
    	if conf.AccessKey == "" || conf.SecretKey == "" {
    		return nil, errors.New("both access and secret keys are required")
    	}
    
    	if conf.Bucket == "" {
    		return nil, errors.New("no bucket name was provided")
    	}
    
    	u, err := url.Parse(conf.Endpoint)
    	if err != nil {
    		return nil, err
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 4K bytes
    - Viewed (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/project/interpolation/AbstractStringBasedModelInterpolator.java

         * <ul>
         *   <li>If it starts with either "pom." or "project.", the expression is evaluated against the model.</li>
         *   <li>If the value is null, get the value from the context.</li>
         *   <li>If the value is null, but the context contains the expression, don't replace the expression string
         *       with the value, and continue to find other expressions.</li>
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  7. cmd/bucket-policy-handlers_test.go

    		}
    		if recV2.Code == http.StatusOK {
    			// Verify whether the bucket policy fetched is same as the one inserted.
    			expectedPolicy, err := policy.ParseBucketPolicyConfig(strings.NewReader(expectedBucketPolicyStr), testCase.bucketName)
    			if err != nil {
    				t.Fatalf("unexpected error. %v", err)
    			}
    			gotPolicy, err := policy.ParseBucketPolicyConfig(bytes.NewReader(bucketPolicyReadBuf), testCase.bucketName)
    			if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  8. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/AbstractStringBasedModelInterpolator.java

                if (config.getValidationLevel() >= ModelBuildingRequest.VALIDATION_LEVEL_MAVEN_2_0) {
                    projectPrefixValueSource =
                            new ProblemDetectingValueSource(projectPrefixValueSource, PREFIX_POM, PREFIX_PROJECT, problems);
                }
    
                prefixlessObjectBasedValueSource = new ObjectBasedValueSource(model);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  9. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuildingRequest.java

            return this;
        }
    
        @Override
        public List<Profile> getProfiles() {
            if (profiles == null) {
                profiles = new ArrayList<>();
            }
    
            return profiles;
        }
    
        @Override
        public DefaultModelBuildingRequest setProfiles(List<Profile> profiles) {
            if (profiles != null) {
                this.profiles = new ArrayList<>(profiles);
            } else {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  10. api/maven-api-core/src/main/java/org/apache/maven/api/Project.java

        /**
         * Returns a boolean indicating if the project is the top level project for
         * this reactor build.  The top level project may be different from the
         * {@code rootDirectory}, especially if a subtree of the project is being
         * built, either because Maven has been launched in a subdirectory or using
         * a {@code -f} option.
         *
         * @return {@code true} if the project is the top level project for this build
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Sat Sep 28 09:03:24 UTC 2024
    - 7.8K bytes
    - Viewed (0)
Back to top