Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 101 for getPath (0.18 sec)

  1. api/maven-api-core/src/main/java/org/apache/maven/api/services/ArtifactManager.java

         * or {@code Optional.empty()} if no path has been associated.
         */
        @Nonnull
        Optional<Path> getPath(@Nonnull Artifact artifact);
    
        /**
         * Associates the given file path to the artifact.
         */
        void setPath(@Nonnull Artifact artifact, Path path);
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Mar 23 05:29:39 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  2. maven-core/src/main/java/org/apache/maven/configuration/BasedirBeanConfigurationPathTranslator.java

                } else if (path.getPath().startsWith(File.separator)) {
                    // drive-relative Windows path, don't align with base dir but with drive root
                    result = path.getAbsoluteFile();
                } else {
                    // an ordinary relative path, align with base dir
                    result = new File(new File(basedir, path.getPath()).toURI().normalize()).getAbsoluteFile();
                }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  3. maven-core/src/main/java/org/apache/maven/internal/impl/DefaultLocalRepositoryManager.java

            InternalSession s = InternalSession.from(session);
            String path = getManager(s, local).getPathForLocalArtifact(s.toArtifact(artifact));
            return local.getPath().resolve(path);
        }
    
        @Override
        public Path getPathForRemoteArtifact(
                Session session, LocalRepository local, RemoteRepository remote, Artifact artifact) {
    Java
    - Registered: Sun Mar 24 03:35:10 GMT 2024
    - Last Modified: Tue Dec 05 08:11:33 GMT 2023
    - 2.5K bytes
    - Viewed (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/services/xml/XmlReaderRequest.java

    import org.apache.maven.api.annotations.Nullable;
    
    /**
     * An XML reader request.
     *
     * @since 4.0.0
     */
    @Experimental
    @Immutable
    public interface XmlReaderRequest {
    
        @Nullable
        Path getPath();
    
        @Nullable
        URL getURL();
    
        @Nullable
        InputStream getInputStream();
    
        @Nullable
        Reader getReader();
    
        @Nullable
        Transformer getTransformer();
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Nov 17 15:52:15 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  5. maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java

            if (modelSource instanceof FileModelSource fms) {
                return ModelSource.fromPath(fms.getPath());
            } else if (modelSource instanceof ArtifactModelSource ams) {
                return ModelSource.fromPath(ams.getPath(), ams.toString());
            } else {
                return new ModelSource() {
                    @Override
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 15:10:38 GMT 2024
    - 56.9K bytes
    - Viewed (0)
  6. maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/PluginsMetadataGenerator.java

            if (artifact != null
                    && "jar".equals(artifact.getExtension())
                    && "".equals(artifact.getClassifier())
                    && artifact.getPath() != null) {
                Path artifactPath = artifact.getPath();
                if (Files.isRegularFile(artifactPath)) {
                    try (JarFile artifactJar = new JarFile(artifactPath.toFile(), false)) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  7. maven-core/src/main/java/org/apache/maven/internal/impl/DefaultPluginXmlFactory.java

        @Override
        public PluginDescriptor read(@Nonnull XmlReaderRequest request) throws XmlReaderException {
            nonNull(request, "request");
            Path path = request.getPath();
            URL url = request.getURL();
            Reader reader = request.getReader();
            InputStream inputStream = request.getInputStream();
            if (path == null && url == null && reader == null && inputStream == null) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 5K bytes
    - Viewed (0)
  8. maven-compat/src/test/java/org/apache/maven/artifact/AbstractArtifactComponentTestCase.java

            File f = new File(getBasedir(), path);
    
            f.createNewFile();
    
            return artifactRepositoryFactory.createArtifactRepository(
                    "test", "file://" + f.getPath(), repoLayout, null, null);
        }
    
        protected String getRepositoryLayout() {
            return "default";
        }
    
        protected ArtifactRepository localRepository() throws Exception {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  9. maven-core/src/test/java/org/apache/maven/configuration/DefaultBeanConfiguratorPathTest.java

                    return value.substring(2, value.length() - 1);
                }
                return value;
            };
    
            BeanConfigurationPathTranslator translator = path -> new File("base", path.getPath()).getAbsoluteFile();
    
            DefaultBeanConfigurationRequest request = new DefaultBeanConfigurationRequest();
            request.setBean(bean).setConfiguration(config);
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  10. maven-compat/src/test/java/org/apache/maven/artifact/testutils/TestFileManager.java

            File file = new File(dir, filename);
    
            file.getParentFile().mkdirs();
    
            FileUtils.fileWrite(file.getPath(), encoding, contents);
    
            markForDeletion(file);
    
            return file;
        }
    
        public String getFileContents(File file, String encoding) throws IOException {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 4.7K bytes
    - Viewed (0)
Back to top