Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 52 for files (0.15 sec)

  1. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultTransport.java

            try {
                Path tempPath = null;
                try {
                    tempPath = Files.createTempFile("transport-get", "tmp");
                    Files.write(tempPath, source);
                    put(tempPath, relativeTarget);
                } finally {
                    if (tempPath != null) {
                        Files.deleteIfExists(tempPath);
                    }
                }
            } catch (IOException e) {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Apr 01 15:17:46 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  2. maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/MetadataBridge.java

        public MetadataBridge(ArtifactMetadata metadata) {
            this.metadata = metadata;
        }
    
        public void merge(File current, File result) throws RepositoryException {
            try {
                if (current.exists()) {
                    Files.createDirectories(result.toPath().getParent());
                    Files.copy(current.toPath(), result.toPath());
                }
                ArtifactRepository localRepo = new MetadataRepository(result);
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Feb 26 17:04:44 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  3. maven-builder-support/src/main/java/org/apache/maven/building/FileSource.java

         * Creates a new source backed by the specified file.
         *
         * @param file The file, must not be {@code null}.
         * @deprecated Use {@link #FileSource(Path)} instead.
         */
        @Deprecated
        public FileSource(File file) {
            this(Objects.requireNonNull(file, "file cannot be null").toPath());
        }
    
        /**
         * Creates a new source backed by the specified file.
         *
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Feb 26 17:04:44 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  4. maven-core/src/main/java/org/apache/maven/project/ExtensionDescriptorBuilder.java

     * under the License.
     */
    package org.apache.maven.project;
    
    import javax.xml.stream.XMLStreamException;
    import javax.xml.stream.XMLStreamReader;
    
    import java.io.File;
    import java.io.IOException;
    import java.io.InputStream;
    import java.nio.file.Files;
    import java.util.ArrayList;
    import java.util.List;
    import java.util.jar.JarFile;
    import java.util.zip.ZipEntry;
    
    import com.ctc.wstx.stax.WstxInputFactory;
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  5. maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/DefaultRepositoryMetadataManager.java

                            updateCheckManager.touch(metadata, repository, file);
                        }
                    }
    
                    // TODO should this be inside the above check?
                    // touch file so that this is not checked again until interval has passed
                    if (file.exists()) {
                        file.setLastModified(System.currentTimeMillis());
                    }
                }
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 18.9K bytes
    - Viewed (0)
  6. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultDependencyResolverResult.java

     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.internal.impl;
    
    import java.io.IOException;
    import java.nio.file.Files;
    import java.nio.file.Path;
    import java.util.ArrayList;
    import java.util.Collections;
    import java.util.LinkedHashMap;
    import java.util.List;
    import java.util.Map;
    import java.util.Set;
    import java.util.function.Predicate;
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 14.2K bytes
    - Viewed (0)
  7. maven-core/src/main/java/org/apache/maven/internal/impl/PathModularization.java

                 * source files.
                 */
                if (Files.isDirectory(file)) {
                    Map<Path, String> names = new HashMap<>();
                    try (Stream<Path> subdirs = Files.list(file)) {
                        subdirs.filter(Files::isDirectory).forEach((subdir) -> {
                            Path mf = subdir.resolve(MODULE_INFO);
                            if (Files.isRegularFile(mf)) {
    Java
    - Registered: Sun Mar 24 03:35:10 GMT 2024
    - Last Modified: Fri Mar 01 17:18:13 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  8. maven-core/src/main/java/org/apache/maven/ReactorReader.java

    import javax.inject.Inject;
    import javax.inject.Named;
    import javax.inject.Singleton;
    
    import java.io.File;
    import java.io.IOException;
    import java.nio.file.DirectoryNotEmptyException;
    import java.nio.file.Files;
    import java.nio.file.Path;
    import java.nio.file.Paths;
    import java.nio.file.StandardCopyOption;
    import java.util.*;
    import java.util.concurrent.ConcurrentHashMap;
    import java.util.stream.Collectors;
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  9. maven-compat/src/test/java/org/apache/maven/artifact/deployer/ArtifactDeployerTest.java

                String artifactBasedir = new File(getBasedir(), "src/test/resources/artifact-install").getAbsolutePath();
    
                Artifact artifact = createArtifact("artifact", "1.0");
    
                File file = new File(artifactBasedir, "artifact-1.0.jar");
                assertEquals("dummy", new String(Files.readAllBytes(file.toPath()), StandardCharsets.UTF_8).trim());
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  10. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultRootLocator.java

    import java.io.IOException;
    import java.io.InputStream;
    import java.nio.file.Files;
    import java.nio.file.Path;
    
    import com.ctc.wstx.stax.WstxInputFactory;
    import org.apache.maven.api.di.Named;
    import org.apache.maven.api.services.model.*;
    
    @Named
    public class DefaultRootLocator implements RootLocator {
    
        public boolean isRootDirectory(Path dir) {
            if (Files.isDirectory(dir.resolve(".mvn"))) {
                return true;
            }
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 2.5K bytes
    - Viewed (0)
Back to top