Java 类org.gradle.api.internal.file.collections.DefaultConfigurableFileCollection 实例源码

项目:Reer    文件:JvmOptions.java   
public JvmOptions(PathToFileResolver resolver) {
    this.bootstrapClasspath = new DefaultConfigurableFileCollection(resolver, null);
    immutableSystemProperties.put(FILE_ENCODING_KEY, Charset.defaultCharset().name());
    immutableSystemProperties.put(USER_LANGUAGE_KEY, DEFAULT_LOCALE.getLanguage());
    immutableSystemProperties.put(USER_COUNTRY_KEY, DEFAULT_LOCALE.getCountry());
    immutableSystemProperties.put(USER_VARIANT_KEY, DEFAULT_LOCALE.getVariant());
}
项目:Reer    文件:JavaExecHandleBuilder.java   
public JavaExecHandleBuilder(FileResolver fileResolver) {
    super(fileResolver);
    this.fileResolver = fileResolver;
    javaOptions = new DefaultJavaForkOptions(fileResolver);
    classpath = new DefaultConfigurableFileCollection(fileResolver, null);
    executable(javaOptions.getExecutable());
}
项目:Reer    文件:DefaultSourceSetOutput.java   
public DefaultSourceSetOutput(String sourceSetDisplayName, FileResolver fileResolver, TaskResolver taskResolver) {
    this.fileResolver = fileResolver;
    String displayName = sourceSetDisplayName + " classes";
    outputDirectories = new DefaultConfigurableFileCollection(displayName, fileResolver, taskResolver, new Callable() {
        public Object call() throws Exception {
            return getClassesDir();
        }
    }, new Callable() {
        public Object call() throws Exception {
            return getResourcesDir();
        }
    });
    dirs = new DefaultConfigurableFileCollection("dirs", fileResolver, taskResolver);
}
项目:intellij-ce-playground    文件:TaskManager.java   
private static void fixTestTaskSources(@NonNull Test testTask) {
    // We are running in afterEvaluate, so the JavaBasePlugin has already added a
    // callback to add test classes to the list of source files of the newly created task.
    // The problem is that we haven't configured the test classes yet (JavaBasePlugin
    // assumes all Test tasks are fully configured at this point), so we have to remove the
    // "directory null" entry from source files and add the right value.
    //
    // This is an ugly hack, since we assume sourceFiles is an instance of
    // DefaultConfigurableFileCollection.
    ((DefaultConfigurableFileCollection) testTask.getInputs().getSourceFiles()).getFrom().clear();
}
项目:Pushjet-Android    文件:JvmOptions.java   
public JvmOptions(FileResolver resolver) {
    this.bootstrapClasspath = new DefaultConfigurableFileCollection(resolver, null);
    immutableSystemProperties.put(FILE_ENCODING_KEY, Charset.defaultCharset().name());
    immutableSystemProperties.put(USER_LANGUAGE_KEY, DEFAULT_LOCALE.getLanguage());
    immutableSystemProperties.put(USER_COUNTRY_KEY, DEFAULT_LOCALE.getCountry());
    immutableSystemProperties.put(USER_VARIANT_KEY, DEFAULT_LOCALE.getVariant());
}
项目:Pushjet-Android    文件:JavaExecHandleBuilder.java   
public JavaExecHandleBuilder(FileResolver fileResolver) {
    super(fileResolver);
    this.fileResolver = fileResolver;
    javaOptions = new DefaultJavaForkOptions(fileResolver);
    classpath = new DefaultConfigurableFileCollection(fileResolver, null);
    executable(javaOptions.getExecutable());
}
项目:Pushjet-Android    文件:DefaultSourceSetOutput.java   
public DefaultSourceSetOutput(String sourceSetDisplayName, FileResolver fileResolver, TaskResolver taskResolver) {
    this.fileResolver = fileResolver;
    String displayName = String.format("%s output", sourceSetDisplayName);
    outputDirectories = new DefaultConfigurableFileCollection(displayName, fileResolver, taskResolver, new Callable() {
        public Object call() throws Exception {
            return getClassesDir();
        }
    }, new Callable() {
        public Object call() throws Exception {
            return getResourcesDir();
        }
    });
    dirs = new DefaultConfigurableFileCollection("dirs", fileResolver, taskResolver);
}
项目:Pushjet-Android    文件:JavaExecHandleBuilder.java   
public JavaExecHandleBuilder(FileResolver fileResolver) {
    super(fileResolver);
    this.fileResolver = fileResolver;
    javaOptions = new DefaultJavaForkOptions(fileResolver);
    classpath = new DefaultConfigurableFileCollection(fileResolver, null);
    executable(javaOptions.getExecutable());
}
项目:Pushjet-Android    文件:DefaultSourceSetOutput.java   
public DefaultSourceSetOutput(String sourceSetDisplayName, FileResolver fileResolver, TaskResolver taskResolver) {
    this.fileResolver = fileResolver;
    String displayName = String.format("%s output", sourceSetDisplayName);
    outputDirectories = new DefaultConfigurableFileCollection(displayName, fileResolver, taskResolver, new Callable() {
        public Object call() throws Exception {
            return getClassesDir();
        }
    }, new Callable() {
        public Object call() throws Exception {
            return getResourcesDir();
        }
    });
    dirs = new DefaultConfigurableFileCollection("dirs", fileResolver, taskResolver);
}
项目:Reer    文件:DefaultClasspath.java   
public DefaultClasspath(FileResolver fileResolver, TaskResolver taskResolver) {
    files = new DefaultConfigurableFileCollection(fileResolver, taskResolver);
}
项目:Reer    文件:AbstractFileResolver.java   
public FileCollectionInternal resolveFiles(Object... paths) {
    if (paths.length == 1 && paths[0] instanceof FileCollection) {
        return Cast.cast(FileCollectionInternal.class, paths[0]);
    }
    return new DefaultConfigurableFileCollection(this, null, paths);
}
项目:Reer    文件:DefaultFileOperations.java   
public ConfigurableFileCollection files(Object... paths) {
    return new DefaultConfigurableFileCollection(fileResolver, taskResolver, paths);
}
项目:Pushjet-Android    文件:DefaultClasspath.java   
public DefaultClasspath(FileResolver fileResolver, TaskResolver taskResolver) {
    files = new DefaultConfigurableFileCollection(fileResolver, taskResolver);
}
项目:Pushjet-Android    文件:DefaultTaskInputs.java   
public DefaultTaskInputs(FileResolver resolver, TaskInternal task, TaskMutator taskMutator) {
    this.resolver = resolver;
    this.taskMutator = taskMutator;
    inputFiles = new DefaultConfigurableFileCollection(String.format("%s input files", task), resolver, null);
    sourceFiles = new DefaultConfigurableFileCollection(String.format("%s source files", task), resolver, null);
}
项目:Pushjet-Android    文件:DefaultTaskOutputs.java   
public DefaultTaskOutputs(FileResolver resolver, TaskInternal task, TaskMutator taskMutator) {
    this.taskMutator = taskMutator;
    outputFiles = new DefaultConfigurableFileCollection(String.format("%s output files", task), resolver, null);
    outputFiles.builtBy(task);
}
项目:Pushjet-Android    文件:AbstractFileResolver.java   
public FileCollection resolveFiles(Object... paths) {
    if (paths.length == 1 && paths[0] instanceof FileCollection) {
        return (FileCollection) paths[0];
    }
    return new DefaultConfigurableFileCollection(this, null, paths);
}
项目:Pushjet-Android    文件:DefaultFileOperations.java   
public ConfigurableFileCollection files(Object... paths) {
    return new DefaultConfigurableFileCollection(fileResolver, taskResolver, paths);
}
项目:Pushjet-Android    文件:DefaultClasspath.java   
public DefaultClasspath(FileResolver fileResolver, TaskResolver taskResolver) {
    files = new DefaultConfigurableFileCollection(fileResolver, taskResolver);
}
项目:Pushjet-Android    文件:DefaultTaskInputs.java   
public DefaultTaskInputs(FileResolver resolver, TaskInternal task, TaskStatusNagger taskStatusNagger) {
    this.resolver = resolver;
    this.taskStatusNagger = taskStatusNagger;
    inputFiles = new DefaultConfigurableFileCollection(String.format("%s input files", task), resolver, null);
    sourceFiles = new DefaultConfigurableFileCollection(String.format("%s source files", task), resolver, null);
}
项目:Pushjet-Android    文件:DefaultTaskOutputs.java   
public DefaultTaskOutputs(FileResolver resolver, TaskInternal task, TaskStatusNagger taskStatusNagger) {
    this.taskStatusNagger = taskStatusNagger;
    outputFiles = new DefaultConfigurableFileCollection(String.format("%s output files", task), resolver, null);
    outputFiles.builtBy(task);
}
项目:Pushjet-Android    文件:AbstractFileResolver.java   
public FileCollection resolveFiles(Object... paths) {
    if (paths.length == 1 && paths[0] instanceof FileCollection) {
        return (FileCollection) paths[0];
    }
    return new DefaultConfigurableFileCollection(this, null, paths);
}
项目:Pushjet-Android    文件:DefaultFileOperations.java   
public ConfigurableFileCollection files(Object... paths) {
    return new DefaultConfigurableFileCollection(fileResolver, taskResolver, paths);
}
项目:Pushjet-Android    文件:JvmOptions.java   
public JvmOptions(FileResolver resolver) {
    this.bootstrapClasspath = new DefaultConfigurableFileCollection(resolver, null);
    immutableSystemProperties.put(FILE_ENCODING_KEY, Charset.defaultCharset().name());
}