Package groovy.util

Examples of groovy.util.FileNameFinder


    @Override
    public String getRelativePath(final Group group, final Engine engine, final Test test) {
        try {
            String basedir = "test/reports/html/" + engine.getName() + "/" + group.getName();
            String pattern = "*_" + test.getFullName() + ".html";
            String path = new FileNameFinder().getFileNames(basedir, pattern).get(0);
            String parentPath = getFile().getParent().toAbsolutePath().toString();

            return path.substring(parentPath.length() + 1);
        } catch (Exception e) {
            return "#";
View Full Code Here


    @Override
    public String getRelativePath(Group group, Engine engine, Test test) {
        try {
            String basedir = "test/reports/html/soapui/" + engine.getName() + "/" + group.getName();
            String pattern = "*_" + test.getFullName() + ".html";
            String path = new FileNameFinder().getFileNames(basedir, pattern).get(0);
            String parentPath = getFile().getParent().toAbsolutePath().toString();

            return path.substring(parentPath.length() + 1);
        } catch (Exception e){
            return "#";
View Full Code Here

TOP

Related Classes of groovy.util.FileNameFinder

Copyright © 2018 www.massapicom. 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.