Examples of RelativePath


Examples of hudson.RelativePath

                String name = qp.value();
                if (name.length()==0) name = p.name();
                if (name==null || name.length()==0)
                    continue;   // unknown parameter name. we'll report the error when the form is submitted.

                RelativePath rp = p.annotation(RelativePath.class);
                if (rp!=null)
                    name = rp.value()+'/'+name;

                if (query.length()==0query.append("+qs(this)");

                if (name.equals("value")) {
                    // The special 'value' parameter binds to the the current field
View Full Code Here

Examples of hudson.RelativePath

                String name = qp.value();
                if (name.length()==0) name = p.name();
                if (name==null || name.length()==0)
                    continue;   // unknown parameter name. we'll report the error when the form is submitted.

                RelativePath rp = p.annotation(RelativePath.class);
                if (rp!=null)
                    name = rp.value()+'/'+name;

                depends.add(name);
                continue;
            }
View Full Code Here

Examples of org.cfeclipse.cfml.util.RelativePath

        } catch (IOException e) {
          e.printStackTrace();
        }
       
        //Figure out the relative paths
        RelativePath relpather = new RelativePath();
       
        relPath =  relpather.getRelativePath(target, dropped);
       
       
//        System.out.println("Dropped File: " + dropped.getAbsolutePath());
//        System.out.println("Target File:  " + target.getAbsolutePath());
//        System.out.println("Relative path:" + relPath);
View Full Code Here

Examples of org.gradle.api.file.RelativePath

        maybeVisit(fileDetails.getRelativePath().getParent());
        getVisitor().visitFile(fileDetails);
    }

    public void visitDir(FileVisitDetails dirDetails) {
        RelativePath path = dirDetails.getRelativePath();
        if (!visitedDirs.contains(path)) {
            pendingDirs.put(path, dirDetails);
        }
    }
View Full Code Here

Examples of org.gradle.api.file.RelativePath

            public void visitFile(FileVisitDetails fileDetails) {
                maybeDelete(fileDetails, false);
            }

            private void maybeDelete(FileVisitDetails fileDetails, boolean isDir) {
                RelativePath path = fileDetails.getRelativePath();
                if (!visited.contains(path)) {
                    if (isDir) {
                        GFileUtils.deleteDirectory(fileDetails.getFile());
                    } else {
                        GFileUtils.deleteQuietly(fileDetails.getFile());
View Full Code Here

Examples of org.gradle.api.file.RelativePath

    public RenamingCopyAction(Transformer<String> transformer) {
        this.transformer = transformer;
    }

    public void execute(FileCopyDetails fileCopyDetails) {
        RelativePath path = fileCopyDetails.getRelativePath();
        path = path.replaceLastName(transformer.transform(path.getLastName()));
        fileCopyDetails.setRelativePath(path);
    }
View Full Code Here

Examples of org.gradle.api.file.RelativePath

            read = true;
            return tar;
        }

        public RelativePath getRelativePath() {
            return new RelativePath(!entry.isDirectory(), entry.getName().split("/"));
        }
View Full Code Here

Examples of org.gradle.api.file.RelativePath

        Visit visit = new Visit(visitor, stopFlag);
        for (Map.Entry<RelativePath, Closure> entry : elements.entrySet()) {
            if (stopFlag.get()) {
                break;
            }
            RelativePath path = entry.getKey();
            Closure generator = entry.getValue();
            visit.visit(path, generator);
        }
        return this;
    }
View Full Code Here

Examples of org.gradle.api.file.RelativePath

public class NameOnlyPatternMatcherTest {

    @Test public void testLiteralName() {
        Spec<RelativePath> matcher;
        RelativePath path;

        matcher = new NameOnlyPatternMatcher(true, true, "fred.txt");

        path = new RelativePath(true, "fred.txt");
        assertTrue(matcher.isSatisfiedBy(path));

        path = new RelativePath(true, "something.else");
        assertFalse(matcher.isSatisfiedBy(path));
    }
View Full Code Here

Examples of org.gradle.api.file.RelativePath

        assertFalse(matcher.isSatisfiedBy(path));
    }

    @Test public void testPartialMatch() {
        Spec<RelativePath> matcher;
        RelativePath path;

        matcher = new NameOnlyPatternMatcher(true, true, "fred");
        path = new RelativePath(true, "fred");
        assertTrue(matcher.isSatisfiedBy(path));

        path = new RelativePath(false, "subdir");
        assertTrue(matcher.isSatisfiedBy(path));


        matcher = new NameOnlyPatternMatcher(false, true, "fred");
        path = new RelativePath(true, "fred");
        assertTrue(matcher.isSatisfiedBy(path));

        path = new RelativePath(false, "subdir");
        assertFalse(matcher.isSatisfiedBy(path));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.