Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 89 for getResource (0.25 sec)

  1. maven-compat/src/main/java/org/apache/maven/usability/plugin/ExpressionDocumenter.java

            String myResourcePath = ExpressionDocumenter.class.getName().replace('.', '/') + ".class";
    
            URL myResource = ExpressionDocumenter.class.getClassLoader().getResource(myResourcePath);
    
            assert myResource != null : "The resource is this class itself loaded by its own classloader and must exist";
    
            String myClasspathEntry = myResource.getPath();
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 11:28:54 GMT 2023
    - 5.2K 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-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)
  4. android/guava-tests/test/com/google/common/io/IoTestCase.java

          }
        }
        filesToDelete.clear();
      }
    
      private File getTestDir() throws IOException {
        if (testDir != null) {
          return testDir;
        }
    
        URL testFileUrl = IoTestCase.class.getResource("testdata/i18n.txt");
        if (testFileUrl == null) {
          throw new RuntimeException("unable to locate testdata directory");
        }
    
        if (testFileUrl.getProtocol().equals("file")) {
          try {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/io/TraversalUtil.java

         */
        public static Traverser getTraverser(final Class<?> referenceClass) {
            assertArgumentNotNull("referenceClass", referenceClass);
    
            final URL url = ResourceUtil.getResource(toClassFile(referenceClass.getName()));
            final String[] path = referenceClass.getName().split("\\.");
            String baseUrl = url.toExternalForm();
            for (final String element : path) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/IoTestCase.java

          }
        }
        filesToDelete.clear();
      }
    
      private File getTestDir() throws IOException {
        if (testDir != null) {
          return testDir;
        }
    
        URL testFileUrl = IoTestCase.class.getResource("testdata/i18n.txt");
        if (testFileUrl == null) {
          throw new RuntimeException("unable to locate testdata directory");
        }
    
        if (testFileUrl.getProtocol().equals("file")) {
          try {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/io/FileUtilTest.java

    import java.io.File;
    import java.net.URL;
    
    import org.codelibs.core.net.URLUtil;
    import org.junit.Test;
    
    /**
     * @author koichik
     *
     */
    public class FileUtilTest {
    
        URL url = ResourceUtil.getResource(getClass().getName().replace('.', '/') + ".txt");
    
        File inputFile = URLUtil.toFile(url);
    
        /**
         * @throws Exception
         */
        @Test
        public void testFileToFile() throws Exception {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  8. maven-core/src/main/java/org/apache/maven/project/collector/PomlessCollectionStrategy.java

            ProjectBuildingRequest buildingRequest = request.getProjectBuildingRequest();
            ModelSource modelSource = new UrlModelSource(DefaultMaven.class.getResource("project/standalone.xml"));
            MavenProject project =
                    projectBuilder.build(modelSource, buildingRequest).getProject();
            project.setExecutionRoot(true);
            request.setProjectPresent(false);
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Dec 26 15:12:32 GMT 2022
    - 2.4K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/io/FileUtil.java

        public static String readText(final String path, final String encoding) {
            assertArgumentNotEmpty("path", path);
            assertArgumentNotEmpty("encoding", encoding);
    
            final URL url = ResourceUtil.getResource(path);
            if (url.getProtocol().equals("file")) {
                return readText(URLUtil.toFile(url), encoding);
            }
            final InputStream is = URLUtil.openStream(url);
            try {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 9K bytes
    - Viewed (0)
  10. maven-compat/src/test/java/org/apache/maven/repository/legacy/StringWagon.java

        @Override
        public void fillInputData(InputData inputData)
                throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException {
            Resource resource = inputData.getResource();
    
            String content = expectedContent.get(resource.getName());
    
            if (content != null) {
                resource.setContentLength(content.length());
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Dec 26 15:12:32 GMT 2022
    - 3K bytes
    - Viewed (0)
Back to top