Package org.gradle.api.internal.file.collections

Examples of org.gradle.api.internal.file.collections.SimpleFileCollection


        assertThat(groovydoc.getLinks(), equalTo(newLinkSet));
    }

    @Test(expected = InvalidUserDataException.class)
    public void groovyClasspathMustNotBeEmpty() {
        groovydoc.setGroovyClasspath(new SimpleFileCollection());
        groovydoc.generate();
    }
View Full Code Here


            for (Map.Entry<String, IncrementalFileSnapshot> entry : snapshots.entrySet()) {
                if (entry.getValue() instanceof FileHashSnapshot) {
                    files.add(new File(entry.getKey()));
                }
            }
            return new SimpleFileCollection(files);
        }
View Full Code Here

        public FileCollection getRuntimeFiles() {
            return empty();
        }

        private FileCollection empty() {
            return new SimpleFileCollection();
        }
View Full Code Here

            return messages.isEmpty();
        }

        public FileCollection getOutputFiles() {
            TaskExecution lastExecution = history.getPreviousExecution();
            return lastExecution != null && lastExecution.getOutputFilesSnapshot() != null ? lastExecution.getOutputFilesSnapshot().getFiles() : new SimpleFileCollection();
        }
View Full Code Here

                }
                return false;
            }
        });

        spec.setSource(new SimpleFileCollection(filtered.getFiles()));
    }
View Full Code Here

        this.fileOperations = fileOperations;
    }

    public void initializeCompilation(JavaCompileSpec spec, Collection<String> staleClasses) {
        if (staleClasses.isEmpty()) {
            spec.setSource(new SimpleFileCollection());
            return; //do nothing. No classes need recompilation.
        }

        PatternSet classesToDelete = new PatternSet();
        PatternSet sourceToCompile = new PatternSet();
View Full Code Here

            public boolean isSatisfiedBy(File element) {
                return element.getName().endsWith(".java");
            }
        });

        spec.setSource(new SimpleFileCollection(javaOnly.getFiles()));
    }
View Full Code Here

        spec.setSource(new SimpleFileCollection(javaOnly.getFiles()));
    }

    private void resolveClasspath(JavaCompileSpec spec) {
        spec.setClasspath(new SimpleFileCollection(Lists.newArrayList(spec.getClasspath())));
    }
View Full Code Here

    private FileCollection toFileCollection(Iterable<File> classpath) {
        if (classpath instanceof FileCollection) {
            return (FileCollection) classpath;
        }
        return new SimpleFileCollection(Lists.newArrayList(classpath));
    }
View Full Code Here

    }

    // Temporary Classpath implementation for new jvm component model
    private static class EmptyClasspath implements Classpath {
        public FileCollection getFiles() {
            return new SimpleFileCollection();
        }
View Full Code Here

TOP

Related Classes of org.gradle.api.internal.file.collections.SimpleFileCollection

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.