Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 75 for getSource (0.2 sec)

  1. maven-builder-support/src/main/java/org/apache/maven/building/Problem.java

         *
         * @return The hint about the source of the problem or an empty string if unknown, never {@code null}.
         */
        String getSource();
    
        /**
         * Gets the one-based index of the line containing the problem. The line number should refer to some text file that
         * is given by {@link #getSource()}.
         *
         * @return The one-based index of the line containing the problem or a non-positive value if unknown.
         */
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 3.3K bytes
    - Viewed (0)
  2. cmd/namespace-lock.go

    	opsID   string
    }
    
    // Lock - block until write lock is taken or timeout has occurred.
    func (di *distLockInstance) GetLock(ctx context.Context, timeout *dynamicTimeout) (LockContext, error) {
    	lockSource := getSource(2)
    	start := UTCNow()
    
    	newCtx, cancel := context.WithCancel(ctx)
    	if !di.rwMutex.GetLock(newCtx, cancel, di.opsID, lockSource, dsync.Options{
    		Timeout:       timeout.Timeout(),
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Jun 05 23:56:35 GMT 2023
    - 9.2K bytes
    - Viewed (0)
  3. cmd/namespace-lock_test.go

    // Tests getSource().
    func TestGetSource(t *testing.T) {
    	currentSource := func() string { return getSource(2) }
    	gotSource := currentSource()
    	// Hard coded line number, 35, in the "expectedSource" value
    	expectedSource := "[namespace-lock_test.go:35:TestGetSource()]"
    	if gotSource != expectedSource {
    		t.Errorf("expected : %s, got : %s", expectedSource, gotSource)
    	}
    }
    
    // Test lock race
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 3.1K bytes
    - Viewed (0)
  4. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelProblemCollector.java

                column = location.getColumnNumber();
                if (location.getSource() != null) {
                    modelId = location.getSource().getModelId();
                    source = location.getSource().getLocation();
                }
            }
    
            if (modelId == null) {
                modelId = getModelId();
                source = getSource();
            }
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  5. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultBuilderProblem.java

        public Severity getSeverity() {
            return severity;
        }
    
        @Override
        public String getLocation() {
            StringBuilder buffer = new StringBuilder(256);
            if (!getSource().isEmpty()) {
                buffer.append(getSource());
            }
            if (getLineNumber() > 0) {
                if (!buffer.isEmpty()) {
                    buffer.append(", ");
                }
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  6. maven-builder-support/src/test/java/org/apache/maven/building/DefaultProblemCollectorTest.java

            collector.setSource("SOURCE_PROBLEM2");
            collector.add(null, "PROBLEM2", -1, -1, null);
    
            collector.setSource("SOURCE_PROBLEM3");
            collector.add(null, "PROBLEM3", -1, -1, null);
    
            assertEquals("", collector.getProblems().get(0).getSource());
            assertEquals("SOURCE_PROBLEM2", collector.getProblems().get(1).getSource());
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Sat Apr 15 17:24:20 GMT 2023
    - 2.7K bytes
    - Viewed (0)
  7. maven-compat/src/main/java/org/apache/maven/repository/metadata/DefaultGraphConflictResolver.java

                                md.getClassifier(),
                                edge.getArtifactUri(),
                                edge.getSource() == null
                                        ? ""
                                        : edge.getSource().getMd().toString(),
                                edge.isResolved(),
                                edge.getTarget() == null
                                        ? null
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 11:28:54 GMT 2023
    - 8.2K bytes
    - Viewed (0)
  8. maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProjectBuilder.java

                if (request.getPath().isPresent()) {
                    Path path = request.getPath().get();
                    res = builder.build(path.toFile(), req);
                } else if (request.getSource().isPresent()) {
                    Source source = request.getSource().get();
                    ModelSource2 modelSource = new SourceWrapper(source);
                    res = builder.build(modelSource, req);
                } else {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  9. maven-builder-support/src/main/java/org/apache/maven/building/DefaultProblem.java

            this.exception = exception;
        }
    
        public String getSource() {
            return source;
        }
    
        public int getLineNumber() {
            return lineNumber;
        }
    
        public int getColumnNumber() {
            return columnNumber;
        }
    
        public String getLocation() {
            StringBuilder buffer = new StringBuilder(256);
    
            if (!getSource().isEmpty()) {
                if (buffer.length() > 0) {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Feb 26 17:04:44 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  10. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/ExtractDslMetaDataTask.groovy

        @OutputFile
        abstract RegularFileProperty getDestinationFile();
    
        /**
         * {@inheritDoc}
         */
        @Override
        @PathSensitive(PathSensitivity.NAME_ONLY)
        FileTree getSource() {
            return super.getSource();
        }
    
        @TaskAction
        def extract() {
            Date start = new Date()
    
            //parsing all input files into metadata
            //and placing them in the repository object
    Groovy
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Mon Jan 08 12:45:57 GMT 2024
    - 4.4K bytes
    - Viewed (0)
Back to top