Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for getResource (0.27 sec)

  1. maven-compat/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java

                throws FileNotFoundException, URISyntaxException {
            ClassLoader cloader = Thread.currentThread().getContextClassLoader();
    
            URL resourceUrl = cloader.getResource(resource);
    
            if (resourceUrl == null) {
                throw new FileNotFoundException("Unable to find: " + resource);
            }
    
            return new File(resourceUrl.toURI());
        }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  2. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultSuperPomProvider.java

        }
    
        private Model readModel(String version, String v) {
            String resource = "/org/apache/maven/model/pom-" + v + ".xml";
            URL url = getClass().getResource(resource);
            if (url == null) {
                throw new IllegalStateException("The super POM " + resource + " was not found"
                        + ", please verify the integrity of your Maven installation");
            }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 3K bytes
    - Viewed (0)
  3. maven-core/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java

                throws FileNotFoundException, URISyntaxException {
            ClassLoader cloader = Thread.currentThread().getContextClassLoader();
    
            URL resourceUrl = cloader.getResource(resource);
    
            if (resourceUrl == null) {
                throw new FileNotFoundException("Unable to find: " + resource);
            }
    
            return new File(resourceUrl.toURI());
        }
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

          JarOutputStream jarOut = closer.register(new JarOutputStream(fileOut, manifest));
          for (String entry : entries) {
            jarOut.putNextEntry(new ZipEntry(entry));
            Resources.copy(ClassPathTest.class.getResource(entry), jarOut);
            jarOut.closeEntry();
          }
        } catch (Throwable e) {
          throw closer.rethrow(e);
        } finally {
          closer.close();
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Apr 26 14:02:27 GMT 2024
    - 24.9K bytes
    - Viewed (0)
  5. cmd/generic-handlers.go

    // redirectable, this is purely internal function and
    // serves only limited purpose on redirect-handler for
    // browser requests.
    func getRedirectLocation(r *http.Request) *xnet.URL {
    	resource, err := getResource(r.URL.Path, r.Host, globalDomainNames)
    	if err != nil {
    		return nil
    	}
    	bucket, _ := path2BucketObject(resource)
    	_, redirect := redirectPrefixes[path.Clean(bucket)]
    	if redirect || resource == slashSeparator {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 01:08:52 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  6. cmd/utils.go

    // OR
    // - end of a string
    func hasSpaceBE(s string) bool {
    	return strings.TrimSpace(s) != s
    }
    
    func request2BucketObjectName(r *http.Request) (bucketName, objectName string) {
    	path, err := getResource(r.URL.Path, r.Host, globalDomainNames)
    	if err != nil {
    		logger.CriticalIf(GlobalContext, err)
    	}
    
    	return path2BucketObject(path)
    }
    
    // path2BucketObjectWithBasePath returns bucket and prefix, if any,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 15:18:21 GMT 2024
    - 31.4K bytes
    - Viewed (0)
  7. cmd/bucket-handlers.go

    	if crypto.S3KMS.IsRequested(r.Header) { // SSE-KMS is not supported
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrNotImplemented), r.URL)
    		return
    	}
    
    	bucket := mux.Vars(r)["bucket"]
    	resource, err := getResource(r.URL.Path, r.Host, globalDomainNames)
    	if err != nil {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrInvalidRequest), r.URL)
    		return
    	}
    
    	// Make sure that the URL does not contain object name.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 16:27:27 GMT 2024
    - 61.6K bytes
    - Viewed (0)
  8. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultBuilderProblem.java

            return severity;
        }
    
        @Override
        public String getLocation() {
            StringBuilder buffer = new StringBuilder(256);
            if (getSource() != null && !getSource().isEmpty()) {
                buffer.append(getSource());
            }
            if (getLineNumber() > 0) {
                if (!buffer.isEmpty()) {
                    buffer.append(", ");
                }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 15:10:38 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  9. 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 May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  10. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultProfileSelector.java

                        activeProfiles.add(profile);
                        if (Profile.SOURCE_POM.equals(profile.getSource())) {
                            activatedPomProfileNotByDefault = true;
                        }
                    } else if (isActiveByDefault(profile)) {
                        if (Profile.SOURCE_POM.equals(profile.getSource())) {
                            activePomProfilesByDefault.add(profile);
                        } else {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 4.5K bytes
    - Viewed (0)
Back to top