Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 94 for relPath (0.15 sec)

  1. platforms/ide/ide/src/test/groovy/org/gradle/plugins/ide/idea/model/PathFactoryTest.groovy

            def file = new File(fileSystemRoots[1], 'file')
            def relpath = relpath(file)
            factory.addPathVariable('ROOT_DIR', rootDir)
    
            expect:
            def path = factory.relativePath('ROOT_DIR', file)
            path.url == "file://${relpath}"
            path.relPath == relpath
        }
    
        def createsPathForAFileUrl() {
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  2. platforms/ide/ide/src/main/java/org/gradle/plugins/ide/idea/model/PathFactory.java

            String relpath = matchPathLists(getPathList(rootDir), getPathList(file));
            return relpath != null ? rootDirString + "/" + relpath : file.getAbsolutePath().replace(File.separatorChar, '/');
        }
    
        private static String relativePathToURI(String relpath) {
            return relativePathToURI(relpath, false);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  3. platforms/ide/ide/src/test/groovy/org/gradle/plugins/ide/eclipse/model/internal/FileReferenceFactoryTest.groovy

        }
    
        def "creates a reference from a file path"() {
            TestFile file = tmpDir.file("file.txt")
    
            expect:
            def reference = factory.fromPath(relpath(file))
            reference.file == file
            reference.path == relpath(file)
            !reference.relativeToPathVariable
        }
    
        def "creates a reference from a jar url"() {
            TestFile file = tmpDir.file("file.txt")
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 4K bytes
    - Viewed (0)
  4. platforms/ide/ide/src/main/java/org/gradle/plugins/ide/idea/model/Path.java

     */
    public class Path {
    
        private final String url;
        private final String relPath;
        private final String canonicalUrl;
    
        public Path(String url) {
            this(url, url, null);
        }
    
        public Path(String url, String canonicalUrl, String relPath) {
            this.relPath = relPath;
            this.url = url;
            this.canonicalUrl = canonicalUrl;
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  5. maven-model-builder/src/main/java/org/apache/maven/model/building/ModelSource2.java

         * be able to accept <code>relPath</code> parameter values that
         * <ul>
         * <li>use either / or \ file path separator</li>
         * <li>have .. parent directory references</li>
         * <li>point either at file or directory, in the latter case POM file name 'pom.xml' needs to be used by the
         * requested model source.</li>
         * </ul>
         *
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Nov 22 13:26:01 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  6. maven-model-builder/src/main/java/org/apache/maven/model/building/FileModelSource.java

            return getFile();
        }
    
        @Override
        public ModelSource3 getRelatedSource(ModelLocator locator, String relPath) {
            relPath = relPath.replace('\\', File.separatorChar).replace('/', File.separatorChar);
    
            Path path = getPath().getParent().resolve(relPath);
    
            Path relatedPom = locator.locateExistingPom(path);
    
            if (relatedPom != null) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Feb 26 17:04:44 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  7. maven-model-builder/src/main/java/org/apache/maven/model/building/ModelSource3.java

         *
         * @param locator locator used to locate the pom file
         * @param relPath path of the requested model source relative to this model source POM
         * @return related model source or <code>null</code> if no such model source
         */
        ModelSource3 getRelatedSource(ModelLocator locator, String relPath);
    
        /**
         * When using a ModelSource3, the method with a {@code ModelLocator} argument should
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Aug 23 19:25:14 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  8. platforms/ide/ide/src/main/java/org/gradle/plugins/ide/idea/model/FilePath.java

    /**
     * A Path that keeps the reference to the File
     */
    public class FilePath extends Path {
    
        private final File file;
    
        public FilePath(File file, String url, String canonicalUrl, String relPath) {
            super(url, canonicalUrl, relPath);
            this.file = file;
        }
    
        public File getFile() {
            return file;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 1020 bytes
    - Viewed (0)
  9. platforms/native/language-native/src/main/java/org/gradle/swiftpm/tasks/GenerateSwiftPackageManagerManifest.java

                        writer.print("            path: \"");
                        Path productPath = target.getPath().toPath();
                        String relPath = baseDir.relativize(productPath).toString();
                        writer.print(relPath.isEmpty() ? "." : relPath);
                        writer.println("\",");
                        writer.println("            sources: [");
                        Set<String> sorted = new TreeSet<String>();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  10. maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProjectBuilder.java

            @Override
            public String getLocation() {
                return source.getLocation();
            }
    
            @Override
            public ModelSource2 getRelatedSource(String relPath) {
                Source rel = source.resolve(relPath);
                return rel != null ? new SourceWrapper(rel) : null;
            }
    
            @Override
            public URI getLocationURI() {
                Path path = source.getPath();
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 11 07:23:04 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top