Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/main/java/org/codelibs/core/lang/ClassLoaderUtil.java

         * @return リソースに対する URL
         *         オブジェクトの列挙。リソースが見つからなかった場合、列挙は空になる。クラスローダがアクセスを持たないリソースは列挙に入らない
         * @see java.lang.ClassLoader#getResources(String)
         */
        public static Iterator<URL> getResources(final String name) {
            assertArgumentNotEmpty("name", name);
    
            return getResources(Thread.currentThread().getContextClassLoader(), name);
        }
    
        /**
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/lang/ClassLoaderUtilTest.java

         */
        @Test
        public void testGetResources() throws Exception {
            final String name = TestCase.class.getName().replace('.', '/') + ".class";
            final Iterator<URL> itr = ClassLoaderUtil.getResources(this.getClass(), name);
            assertThat(itr, is(notNullValue()));
            final URL url = itr.next();
            assertThat(url, is(notNullValue()));
        }
    
        /**
         * @throws Exception
         */
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3K bytes
    - Viewed (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/project/path/DefaultPathTranslator.java

                build.setTestSourceDirectory(alignToBaseDirectory(build.getTestSourceDirectory(), basedir));
    
                for (Resource resource : build.getResources()) {
                    resource.setDirectory(alignToBaseDirectory(resource.getDirectory(), basedir));
                }
    
                for (Resource resource : build.getTestResources()) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  4. compat/maven-embedder/src/main/java/org/apache/maven/cli/logging/Slf4jConfigurationFactory.java

            String slf4jBinding = loggerFactory.getClass().getCanonicalName();
    
            try {
                Enumeration<URL> resources =
                        Slf4jConfigurationFactory.class.getClassLoader().getResources(RESOURCE);
    
                while (resources.hasMoreElements()) {
                    URL resource = resources.nextElement();
                    try {
                        InputStream is = resource.openStream();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProjectManager.java

            }
        }
    
        @Override
        public List<Resource> getResources(@Nonnull Project project, @Nonnull ProjectScope scope) {
            Project prj = nonNull(project, "project");
            if (nonNull(scope, "scope") == ProjectScope.MAIN) {
                return prj.getBuild().getResources();
            } else if (scope == ProjectScope.TEST) {
                return prj.getBuild().getTestResources();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  6. compat/maven-model-builder/src/main/java/org/apache/maven/model/path/DefaultModelPathTranslator.java

                        .scriptSourceDirectory(alignToBaseDirectory(build.getScriptSourceDirectory(), basedir))
                        .resources(map(build.getResources(), r -> alignToBaseDirectory(r, basedir)))
                        .testResources(map(build.getTestResources(), r -> alignToBaseDirectory(r, basedir)))
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  7. impl/maven-core/src/main/java/org/apache/maven/extension/internal/CoreExtensionEntry.java

            Set<String> artifacts = new LinkedHashSet<>();
            Set<String> packages = new LinkedHashSet<>();
    
            try {
                Enumeration<URL> urls = loader.getResources(BUILDER.getExtensionDescriptorLocation());
                while (urls.hasMoreElements()) {
    
                    try (InputStream is = urls.nextElement().openStream()) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/helper/ProtocolHelper.java

            final String path = basePackage.replace('.', '/');
            final ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
            try {
                final Enumeration<URL> resources = classLoader.getResources(path);
    
                while (resources.hasMoreElements()) {
                    final URL resource = resources.nextElement();
                    logger.debug("loading {}", resource);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Wed Jun 19 01:34:15 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  9. 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)
  10. api/maven-api-core/src/main/java/org/apache/maven/api/services/ProjectManager.java

         *
         * @param project the project
         * @param scope the scope, i.e. usually main or test
         * @return the list of resources
         */
        List<Resource> getResources(@Nonnull Project project, @Nonnull ProjectScope scope);
    
        /**
         * Add a resource set to the given project for the given scope.
         *
         * @param project the project
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Thu Oct 24 11:52:48 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top