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()); }
public JavaExecHandleBuilder(FileResolver fileResolver) { super(fileResolver); this.fileResolver = fileResolver; javaOptions = new DefaultJavaForkOptions(fileResolver); classpath = new DefaultConfigurableFileCollection(fileResolver, null); executable(javaOptions.getExecutable()); }
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); }
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(); }
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()); }
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); }
public DefaultClasspath(FileResolver fileResolver, TaskResolver taskResolver) { files = new DefaultConfigurableFileCollection(fileResolver, taskResolver); }
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); }
public ConfigurableFileCollection files(Object... paths) { return new DefaultConfigurableFileCollection(fileResolver, taskResolver, paths); }
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); }
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); }
public FileCollection resolveFiles(Object... paths) { if (paths.length == 1 && paths[0] instanceof FileCollection) { return (FileCollection) paths[0]; } return new DefaultConfigurableFileCollection(this, null, paths); }
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); }
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); }
public JvmOptions(FileResolver resolver) { this.bootstrapClasspath = new DefaultConfigurableFileCollection(resolver, null); immutableSystemProperties.put(FILE_ENCODING_KEY, Charset.defaultCharset().name()); }