Examples of FileCollection


Examples of org.gradle.api.file.FileCollection

        ResolvedConfiguration actualResolvedConfiguration = resolver.resolve(this.configuration, ivy, moduleDescriptor);
        assertThat(actualResolvedConfiguration, not(sameInstance(resolvedConfiguration)));

        final File configFile = new File("from config");
        final File depFile = new File("from dep");
        final FileCollection depFiles = context.mock(FileCollection.class);

        final boolean transitive = true;
        context.checking(new Expectations() {{
            allowing(configuration);
            will(returnValue(transitive));
View Full Code Here

Examples of org.gradle.api.file.FileCollection

    {
        List<File> ins = getIn();
        File out = getOut();
        File rangemap = getRangeMap();
        File rangelog = File.createTempFile("rangelog", ".txt", this.getTemporaryDir());
        FileCollection srg = getSrgs();
        FileCollection exc = getExcs();
       
        InputSupplier inSup;
       
        if (ins.size() == 0)
            return; // no input.
View Full Code Here

Examples of org.gradle.api.file.FileCollection

    }

    @InputFiles
    public FileCollection getAllPatches()
    {
        FileCollection col = null;

        for (ResourceHolder holder : stages)
            if (col == null)
                col = holder.getPatchFiles();
            else
View Full Code Here

Examples of org.gradle.api.file.FileCollection

    }

    @InputFiles
    public FileCollection getAllInjects()
    {
        FileCollection col = null;

        for (ResourceHolder holder : stages)
            if (col == null)
                col = holder.getInjects();
            else
View Full Code Here

Examples of org.gradle.api.file.FileCollection

        excludeCalls.add(c);
    }
   
    public FileCollection getSourcePaths()
    {
        FileCollection collection = getProject().files(new Object[] {});
       
        for (DelayedFile file : sourcePaths)
            collection = collection.plus(getProject().files(file));
               
        return collection;
    }
View Full Code Here

Examples of org.gradle.api.file.FileCollection

                File dir = (File) input.getValue(instance);
                hashes.addAll(Constants.hashAll(dir));
            }
            else if (m.isAnnotationPresent(InputFiles.class))
            {
                FileCollection files = (FileCollection) input.getValue(instance);
                for (File file : files.getFiles())
                {
                    String hash = Constants.hash(file);
                    hashes.add(hash);
                    getLogger().info(hash + " " + input.getValue(instance));
                }
View Full Code Here

Examples of org.gradle.api.file.FileCollection

    public void doStuffBefore() throws Throwable
    {
        readCsvs();

        // check directory and stuff...
        FileCollection in = getInFiles();
        File out = getOutFile();

        if (in.getFiles().size() == 1 && in.getSingleFile().getName().endsWith("jar"))
            jarMode(in.getSingleFile(), out);
        else
            dirMode(in.getFiles(), out);
    }
View Full Code Here

Examples of org.gradle.api.file.FileCollection

        this.fieldsCsv = fieldsCsv;
    }

    public FileCollection getInFiles()
    {
        FileCollection collection = getProject().files(new Object[] {});
       
        for (DelayedFile file : inFiles)
            collection = collection.plus(getProject().files(file));
               
        return collection;
    }
View Full Code Here

Examples of org.gradle.api.file.FileCollection

        candidateFormats.add("ClassPathNotation, e.g. gradleApi().");
    }

    public void convert(DependencyFactory.ClassPathNotation notation, NotationConvertResult<? super SelfResolvingDependency> result) throws TypeConversionException {
        Collection<File> classpath = classPathRegistry.getClassPath(notation.name()).getAsFiles();
        FileCollection files = fileResolver.resolveFiles(classpath);
        result.converted(instantiator.newInstance(DefaultSelfResolvingDependency.class, files));
    }
View Full Code Here

Examples of org.gradle.api.file.FileCollection

        }

        JavaExecHandleBuilder javaExec = new JavaExecHandleBuilder(getFileResolver());
        getForkOptions().copyTo(javaExec);

        FileCollection sonarRunnerConfiguration = getProject().getConfigurations().getAt(SonarRunnerExtension.SONAR_RUNNER_CONFIGURATION_NAME);

        Properties propertiesObject = new Properties();
        propertiesObject.putAll(properties);
        File propertyFile = new File(getTemporaryDir(), "sonar-project.properties");
        GUtil.saveProperties(propertiesObject, propertyFile);
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.