Examples of findFiles()


Examples of com.dotmarketing.portlets.files.business.FileAPI.findFiles()

          hostCache.remove(host);
        }

        // Remove Old 1.9 Files
        FileAPI fileAPI = APILocator.getFileAPI();
        List<File> files = fileAPI.findFiles(user, true, null, host.getIdentifier(), null, null, null, 0, -1, null);
        for (File file : files) {
          fileAPI.delete(file, user, respectFrontendRoles);
        }

        DotConnect dc = new DotConnect();
View Full Code Here

Examples of com.dotmarketing.portlets.files.business.FileAPI.findFiles()

          hostCache.remove(host);
        }

        // Remove Old 1.9 Files
        FileAPI fileAPI = APILocator.getFileAPI();
        List<File> files = fileAPI.findFiles(user, true, null, host.getIdentifier(), null, null, null, 0, -1, null);
        for (File file : files) {
          fileAPI.delete(file, user, respectFrontendRoles);
        }

        DotConnect dc = new DotConnect();
View Full Code Here

Examples of com.google.devtools.moe.client.FileSystem.findFiles()

    Codebase destination =
        new Codebase(new File("/destination"), "public", new RepositoryExpression("destination"));

    expect(mockFs.getTemporaryDirectory("inverse_rename_run_")).andReturn(new File("/output"));

    expect(mockFs.findFiles(new File("/input"))).andReturn(ImmutableSet.of(
        new File("/input/toplevel.txt"),
        new File("/input/public_root/1.txt"),
        new File("/input/public_root/new.txt"),
        new File("/input/public_root/inner1/inner2/innernew.txt")));
View Full Code Here

Examples of com.google.devtools.moe.client.FileSystem.findFiles()

        new File("/input/toplevel.txt"),
        new File("/input/public_root/1.txt"),
        new File("/input/public_root/new.txt"),
        new File("/input/public_root/inner1/inner2/innernew.txt")));

    expect(mockFs.findFiles(new File("/destination"))).andReturn(ImmutableSet.of(
        new File("/destination/internal_root/1.txt")));

    expectCopy(mockFs, "/input/toplevel.txt", "/output/toplevel.txt");
    expectCopy(mockFs, "/input/public_root/1.txt", "/output/internal_root/1.txt");
    expectCopy(mockFs, "/input/public_root/new.txt", "/output/internal_root/new.txt");
View Full Code Here

Examples of hudson.plugins.analysis.core.ParserResult.Workspace.findFiles()

    private Workspace mockWorkspace(final String[] workspaceFiles) throws IOException, InterruptedException {
        Workspace workspace = mock(Workspace.class);
        when(workspace.child(anyString())).thenReturn(workspace);
        when(workspace.getPath()).thenReturn(WORSPACE_ROOT);
        when(workspace.findFiles(anyString())).thenReturn(workspaceFiles);
        return workspace;
    }
}
View Full Code Here

Examples of net.sf.jmd.transformation.IFileFinder.findFiles()

    private List<File> findModelFiles(MoDi.ImportHandler importHandler,
            String modelRoot, String fileExtension) throws MoDiException {

        IFileFinder finder = FileFinderFactory.create(importHandler);
        return finder.findFiles(new File(modelRoot), fileExtension);
    }

    // transform________________________________________________________________
    public void transformArchitectsModel(MoDi.Language language)
            throws MoDiException {
View Full Code Here

Examples of net.sf.jmd.transformation.IFileFinder.findFiles()

    private List<File> findModelFiles(MoDi.ImportHandler importHandler,
            String modelRoot, String fileExtension) throws MoDiException {

        IFileFinder finder = FileFinderFactory.create(importHandler);
        return finder.findFiles(new File(modelRoot), fileExtension);
    }

    // transform________________________________________________________________
    public void transformArchitectsModel(MoDi.Language language)
            throws MoDiException {
View Full Code Here

Examples of org.apache.commons.vfs.FileObject.findFiles()

        if (prefix != null)
          nbase = basef.resolveFile(prefix);
        else
          nbase = basef;

        FileObject[] files = nbase.findFiles(fs);
        if (files != null && files.length > 0)
          return Arrays.asList(files);
        else
          return new ArrayList();
      }
View Full Code Here

Examples of org.apache.commons.vfs.FileObject.findFiles()

    private FileObject getDeploymentScript(FileObject applicationFolder) throws FileSystemException {
        final FileObject metaInf = applicationFolder.getChild("META-INF");
        if(metaInf == null) {
            throw new FileSystemException("Missing META-INF folder in " + applicationFolder.getName().getPath());
        }
        final FileObject[] nanocontainerScripts = metaInf.findFiles(new FileSelector(){

            public boolean includeFile(FileSelectInfo fileSelectInfo) throws Exception {
                return fileSelectInfo.getFile().getName().getBaseName().startsWith(getFileBasename());
            }
View Full Code Here

Examples of org.apache.commons.vfs.FileObject.findFiles()

                fileSystem = fsManager.createFileSystem(resolvedFile);
            } else {
                fileSystem = resolvedFile;
            }
            LOGGER.fine("Listing spatial data files archived in " + archiveFile.getName());
            FileObject[] containedFiles = fileSystem.findFiles(fileSelector);
            List<String> names = new ArrayList<String>(containedFiles.length);
            for (FileObject fo : containedFiles) {
                // path relative to its filesystem (ie, to the archive file)
                String pathDecoded = fo.getName().getPathDecoded();
                names.add(pathDecoded);
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.