/** * List up files and directories in this directory. * * <p> * This method returns direct children of the directory denoted by the 'this' object. */ @Nonnull public List<FilePath> list() throws IOException, InterruptedException { return list((FileFilter)null); }
/** * List up files in this directory that matches the given Ant-style filter. * * @param includes * See {@link FileSet} for the syntax. String like "foo/*.zip" or "foo/**/*.xml" * @return * can be empty but always non-null. */ @Nonnull public FilePath[] list(final String includes) throws IOException, InterruptedException { return list(includes, null); }
/** * List up files in this directory that matches the given Ant-style filter. * * @param includes * @param excludes * See {@link FileSet} for the syntax. String like "foo/*.zip" or "foo/**/*.xml" * @return * can be empty but always non-null. * @since 1.407 */ @Nonnull public FilePath[] list(final String includes, final String excludes) throws IOException, InterruptedException { return list(includes, excludes, true); }
/** * List up subdirectories. * * @return can be empty but never null. Doesn't contain "." and ".." */ @Nonnull public List<FilePath> listDirectories() throws IOException, InterruptedException { return list(new DirectoryFilter()); }
/** * Adds all the files that matches the given glob in the directory. * * @see FilePath#list(String) */ public ClasspathBuilder addAll(FilePath base, String glob) throws IOException, InterruptedException { for(FilePath item : base.list(glob)) add(item); return this; }
@Override public VirtualFile[] list() throws IOException { try { List<FilePath> kids = f.list(); VirtualFile[] vfs = new VirtualFile[kids.size()]; for (int i = 0; i < vfs.length; i++) { vfs[i] = new FilePathVF(kids.get(i), this.root); } return vfs; } catch (InterruptedException x) { throw new IOException(x); } } @Override public Collection<String> list(String includes, String excludes, boolean useDefaultExcludes) throws IOException {
List<FilePath> children = root.list(); if(children.size()!=1) return null; if(children.get(0).isDirectory())
/** * List up files and directories in this directory. * * <p> * This method returns direct children of the directory denoted by the 'this' object. */ public List<FilePath> list() throws IOException, InterruptedException { return list((FileFilter)null); }
/** * List up files and directories in this directory. * * <p> * This method returns direct children of the directory denoted by the 'this' object. */ public List<FilePath> list() throws IOException, InterruptedException { return list((FileFilter)null); }
/** * List up files and directories in this directory. * * <p> * This method returns direct children of the directory denoted by the 'this' object. */ @Nonnull public List<FilePath> list() throws IOException, InterruptedException { return list((FileFilter)null); }
/** * List up files in this directory that matches the given Ant-style filter. * * @param includes * See {@link FileSet} for the syntax. String like "foo/*.zip" or "foo/**/*.xml" * @return * can be empty but always non-null. */ @Nonnull public FilePath[] list(final String includes) throws IOException, InterruptedException { return list(includes, null); }
/** * List up subdirectories. * * @return can be empty but never null. Doesn't contain "." and ".." */ @Nonnull public List<FilePath> listDirectories() throws IOException, InterruptedException { return list(new DirectoryFilter()); }
/** * Adds all the files that matches the given glob in the directory. * * @see FilePath#list(String) */ public ClasspathBuilder addAll(FilePath base, String glob) throws IOException, InterruptedException { for(FilePath item : base.list(glob)) add(item); return this; }
/** * List up subdirectories. * * @return can be empty but never null. Doesn't contain "." and ".." */ public List<FilePath> listDirectories() throws IOException, InterruptedException { return list(new DirectoryFilter()); }
/** * Adds all the files that matches the given glob in the directory. * * @see FilePath#list(String) */ public ClasspathBuilder addAll(FilePath base, String glob) throws IOException, InterruptedException { for (FilePath item : base.list(glob)) { add(item); } return this; }
/** * Adds all the files that matches the given glob in the directory. * * @see FilePath#list(String) */ public ClasspathBuilder addAll(FilePath base, String glob) throws IOException, InterruptedException { for(FilePath item : base.list(glob)) add(item); return this; }
/** * Adds all the files that matches the given glob in the directory. * * @see FilePath#list(String) */ public ClasspathBuilder addAll(FilePath base, String glob) throws IOException, InterruptedException { for(FilePath item : base.list(glob)) add(item); return this; }
@Override public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { for (FilePath f : build.getWorkspace().list()) { f.touch(System.currentTimeMillis()); } return true; } }
@Override public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { for (FilePath f : build.getWorkspace().list()) { f.touch(System.currentTimeMillis()); } return true; } }
protected static FilePath[] getVectorCASTCoverageReports(File file) throws IOException, InterruptedException { FilePath path = new FilePath(file); if (path.isDirectory()) { return path.list("*xml"); } else { // Read old builds (before 1.11) FilePath report = new FilePath(new File(path.getName() + ".xml")); return report.exists() ? new FilePath[]{report} : new FilePath[0]; } }