Java Code Examples for org.gradle.api.internal.file.DefaultSourceDirectorySet#source()
The following examples show how to use
org.gradle.api.internal.file.DefaultSourceDirectorySet#source() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DefaultSourceSet.java From pushfish-android with BSD 2-Clause "Simplified" License | 6 votes |
public DefaultSourceSet(String name, FileResolver fileResolver) { this.name = name; displayName = GUtil.toWords(this.name); String javaSrcDisplayName = String.format("%s Java source", displayName); javaSource = new DefaultSourceDirectorySet(javaSrcDisplayName, fileResolver); javaSource.getFilter().include("**/*.java"); allJavaSource = new DefaultSourceDirectorySet(javaSrcDisplayName, fileResolver); allJavaSource.getFilter().include("**/*.java"); allJavaSource.source(javaSource); String resourcesDisplayName = String.format("%s resources", displayName); resources = new DefaultSourceDirectorySet(resourcesDisplayName, fileResolver); resources.getFilter().exclude(new Spec<FileTreeElement>() { public boolean isSatisfiedBy(FileTreeElement element) { return javaSource.contains(element.getFile()); } }); String allSourceDisplayName = String.format("%s source", displayName); allSource = new DefaultSourceDirectorySet(allSourceDisplayName, fileResolver); allSource.source(resources); allSource.source(javaSource); }
Example 2
Source File: DefaultSourceSet.java From pushfish-android with BSD 2-Clause "Simplified" License | 6 votes |
public DefaultSourceSet(String name, FileResolver fileResolver) { this.name = name; displayName = GUtil.toWords(this.name); String javaSrcDisplayName = String.format("%s Java source", displayName); javaSource = new DefaultSourceDirectorySet(javaSrcDisplayName, fileResolver); javaSource.getFilter().include("**/*.java"); allJavaSource = new DefaultSourceDirectorySet(javaSrcDisplayName, fileResolver); allJavaSource.getFilter().include("**/*.java"); allJavaSource.source(javaSource); String resourcesDisplayName = String.format("%s resources", displayName); resources = new DefaultSourceDirectorySet(resourcesDisplayName, fileResolver); resources.getFilter().exclude(new Spec<FileTreeElement>() { public boolean isSatisfiedBy(FileTreeElement element) { return javaSource.contains(element.getFile()); } }); String allSourceDisplayName = String.format("%s source", displayName); allSource = new DefaultSourceDirectorySet(allSourceDisplayName, fileResolver); allSource.source(resources); allSource.source(javaSource); }
Example 3
Source File: DefaultSourceSet.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 6 votes |
public DefaultSourceSet(String name, FileResolver fileResolver) { this.name = name; displayName = GUtil.toWords(this.name); String javaSrcDisplayName = String.format("%s Java source", displayName); javaSource = new DefaultSourceDirectorySet(javaSrcDisplayName, fileResolver); javaSource.getFilter().include("**/*.java"); allJavaSource = new DefaultSourceDirectorySet(javaSrcDisplayName, fileResolver); allJavaSource.getFilter().include("**/*.java"); allJavaSource.source(javaSource); String resourcesDisplayName = String.format("%s resources", displayName); resources = new DefaultSourceDirectorySet(resourcesDisplayName, fileResolver); resources.getFilter().exclude(new Spec<FileTreeElement>() { public boolean isSatisfiedBy(FileTreeElement element) { return javaSource.contains(element.getFile()); } }); String allSourceDisplayName = String.format("%s source", displayName); allSource = new DefaultSourceDirectorySet(allSourceDisplayName, fileResolver); allSource.source(resources); allSource.source(javaSource); }
Example 4
Source File: DefaultSourceSet.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 6 votes |
public DefaultSourceSet(String name, FileResolver fileResolver) { this.name = name; displayName = GUtil.toWords(this.name); String javaSrcDisplayName = String.format("%s Java source", displayName); javaSource = new DefaultSourceDirectorySet(javaSrcDisplayName, fileResolver); javaSource.getFilter().include("**/*.java"); allJavaSource = new DefaultSourceDirectorySet(javaSrcDisplayName, fileResolver); allJavaSource.getFilter().include("**/*.java"); allJavaSource.source(javaSource); String resourcesDisplayName = String.format("%s resources", displayName); resources = new DefaultSourceDirectorySet(resourcesDisplayName, fileResolver); resources.getFilter().exclude(new Spec<FileTreeElement>() { public boolean isSatisfiedBy(FileTreeElement element) { return javaSource.contains(element.getFile()); } }); String allSourceDisplayName = String.format("%s source", displayName); allSource = new DefaultSourceDirectorySet(allSourceDisplayName, fileResolver); allSource.source(resources); allSource.source(javaSource); }
Example 5
Source File: DefaultScalaSourceSet.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public DefaultScalaSourceSet(String displayName, FileResolver fileResolver) { scala = new DefaultSourceDirectorySet(String.format("%s Scala source", displayName), fileResolver); scala.getFilter().include("**/*.java", "**/*.scala"); allScala = new DefaultSourceDirectorySet(String.format("%s Scala source", displayName), fileResolver); allScala.getFilter().include("**/*.scala"); allScala.source(scala); }
Example 6
Source File: DefaultGroovySourceSet.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public DefaultGroovySourceSet(String displayName, FileResolver fileResolver) { groovy = new DefaultSourceDirectorySet(String.format("%s Groovy source", displayName), fileResolver); groovy.getFilter().include("**/*.java", "**/*.groovy"); allGroovy = new DefaultSourceDirectorySet(String.format("%s Groovy source", displayName), fileResolver); allGroovy.source(groovy); allGroovy.getFilter().include("**/*.groovy"); }
Example 7
Source File: DefaultScalaSourceSet.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public DefaultScalaSourceSet(String displayName, FileResolver fileResolver) { scala = new DefaultSourceDirectorySet(String.format("%s Scala source", displayName), fileResolver); scala.getFilter().include("**/*.java", "**/*.scala"); allScala = new DefaultSourceDirectorySet(String.format("%s Scala source", displayName), fileResolver); allScala.getFilter().include("**/*.scala"); allScala.source(scala); }
Example 8
Source File: DefaultGroovySourceSet.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public DefaultGroovySourceSet(String displayName, FileResolver fileResolver) { groovy = new DefaultSourceDirectorySet(String.format("%s Groovy source", displayName), fileResolver); groovy.getFilter().include("**/*.java", "**/*.groovy"); allGroovy = new DefaultSourceDirectorySet(String.format("%s Groovy source", displayName), fileResolver); allGroovy.source(groovy); allGroovy.getFilter().include("**/*.groovy"); }
Example 9
Source File: DefaultScalaSourceSet.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public DefaultScalaSourceSet(String displayName, FileResolver fileResolver) { scala = new DefaultSourceDirectorySet(String.format("%s Scala source", displayName), fileResolver); scala.getFilter().include("**/*.java", "**/*.scala"); allScala = new DefaultSourceDirectorySet(String.format("%s Scala source", displayName), fileResolver); allScala.getFilter().include("**/*.scala"); allScala.source(scala); }
Example 10
Source File: DefaultGroovySourceSet.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public DefaultGroovySourceSet(String displayName, FileResolver fileResolver) { groovy = new DefaultSourceDirectorySet(String.format("%s Groovy source", displayName), fileResolver); groovy.getFilter().include("**/*.java", "**/*.groovy"); allGroovy = new DefaultSourceDirectorySet(String.format("%s Groovy source", displayName), fileResolver); allGroovy.source(groovy); allGroovy.getFilter().include("**/*.groovy"); }
Example 11
Source File: DefaultScalaSourceSet.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public DefaultScalaSourceSet(String displayName, FileResolver fileResolver) { scala = new DefaultSourceDirectorySet(String.format("%s Scala source", displayName), fileResolver); scala.getFilter().include("**/*.java", "**/*.scala"); allScala = new DefaultSourceDirectorySet(String.format("%s Scala source", displayName), fileResolver); allScala.getFilter().include("**/*.scala"); allScala.source(scala); }
Example 12
Source File: DefaultGroovySourceSet.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public DefaultGroovySourceSet(String displayName, FileResolver fileResolver) { groovy = new DefaultSourceDirectorySet(String.format("%s Groovy source", displayName), fileResolver); groovy.getFilter().include("**/*.java", "**/*.groovy"); allGroovy = new DefaultSourceDirectorySet(String.format("%s Groovy source", displayName), fileResolver); allGroovy.source(groovy); allGroovy.getFilter().include("**/*.groovy"); }