Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for getResources (0.14 sec)

  1. guava-tests/test/com/google/common/reflect/ClassPathTest.java

        assertEquals(
            "a.b", new ClassInfo(FILE, "a/b/Foo.class", getClass().getClassLoader()).getPackageName());
      }
    
      // Test that ResourceInfo.urls() returns identical content to ClassLoader.getResources()
    
    
      @AndroidIncompatible
      public void testGetClassPathUrls() throws Exception {
        if (isWindows()) {
          return; // TODO: b/136041958 - We need to account for drive letters in the path.
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

        assertEquals(
            "a.b", new ClassInfo(FILE, "a/b/Foo.class", getClass().getClassLoader()).getPackageName());
      }
    
      // Test that ResourceInfo.urls() returns identical content to ClassLoader.getResources()
    
    
      @AndroidIncompatible
      public void testGetClassPathUrls() throws Exception {
        if (isWindows()) {
          return; // TODO: b/136041958 - We need to account for drive letters in the path.
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 25K bytes
    - Viewed (0)
  3. compat/maven-model-builder/src/test/java/org/apache/maven/model/interpolation/AbstractModelInterpolatorTest.java

            Model out = interpolator.interpolateModel(model, (Path) null, createModelBuildingRequest(context), collector);
            assertCollectorState(0, 0, 0, collector);
    
            List<Resource> outResources = out.getBuild().getResources();
            Iterator<Resource> resIt = outResources.iterator();
    
            assertEquals(model.getBuild().getSourceDirectory(), resIt.next().getDirectory());
        }
    
        @Test
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/io/TraversalUtil.java

                return EMPTY_ARRAY;
            }
    
            final String baseName = toDirectoryName(rootPackage);
            final List<Traverser> list = newArrayList();
            for (final Iterator<URL> it = ClassLoaderUtil.getResources(baseName); it.hasNext();) {
                final URL url = it.next();
                final Traverser resourcesType = getTraverser(url, rootPackage, baseName);
                if (resourcesType != null) {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/reflect/ClassPath.java

        /**
         * Returns the url identifying the resource.
         *
         * <p>See {@link ClassLoader#getResource}
         *
         * @throws NoSuchElementException if the resource cannot be loaded through the class loader,
         *     despite physically existing in the class path.
         */
        public final URL url() {
          URL url = loader.getResource(resourceName);
          if (url == null) {
            throw new NoSuchElementException(resourceName);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jan 05 17:43:40 UTC 2022
    - 24.9K bytes
    - Viewed (0)
  6. compat/maven-model-builder/src/test/java/org/apache/maven/model/building/DefaultModelBuilderTest.java

                            return new FileModelSource(new File(getClass()
                                    .getResource("/poms/depmgmt/import.xml")
                                    .getFile()));
                        case "test:other:pom":
                            return new FileModelSource(new File(getClass()
                                    .getResource("/poms/depmgmt/other-import.xml")
                                    .getFile()));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/io/ResourceUtil.java

         *
         * @param path
         *            リソースのパス。{@literal null}や空文字列であってはいけません
         * @return リソースの{@link URL}
         * @see #getResource(String, String)
         */
        public static URL getResource(final String path) {
            assertArgumentNotEmpty("path", path);
    
            return getResource(path, null);
        }
    
        /**
         * コンテキストクラスローダからリソースを返します。
         *
         * @param path
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  8. cmd/signature-v2.go

    	if err != nil {
    		return ErrMalformedExpires
    	}
    
    	// Check if the presigned URL has expired.
    	if expiresInt < UTCNow().Unix() {
    		return ErrExpiredPresignRequest
    	}
    
    	encodedResource, err = getResource(encodedResource, r.Host, globalDomainNames)
    	if err != nil {
    		return ErrInvalidRequest
    	}
    
    	expectedSignature := preSignatureV2(cred, r.Method, encodedResource, strings.Join(filteredQueries, "&"), r.Header, expires)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  9. cmd/handler-utils.go

    	}
    }
    
    func collectAPIStats(api string, f http.HandlerFunc) http.HandlerFunc {
    	return func(w http.ResponseWriter, r *http.Request) {
    		resource, err := getResource(r.URL.Path, r.Host, globalDomainNames)
    		if err != nil {
    			defer logger.AuditLog(r.Context(), w, r, mustGetClaimsFromToken(r))
    
    			apiErr := errorCodes.ToAPIErr(ErrUnsupportedHostHeader)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  10. compat/maven-compat/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java

            request.setProcessPlugins(false);
            request.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_MINIMAL);
    
            ModelSource modelSource = new UrlModelSource(getClass().getResource("standalone.xml"));
    
            MavenProject project = projectBuilder.build(modelSource, request).getProject();
            project.setExecutionRoot(true);
            return project;
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.1K bytes
    - Viewed (0)
Back to top