org.gradle.jvm.Classpath Java Examples
The following examples show how to use
org.gradle.jvm.Classpath.
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: JavaBasePlugin.java From javaide with GNU General Public License v3.0 | 5 votes |
private BridgedBinaries configureSourceSetDefaults(final JavaPluginConvention pluginConvention) { final Project project = pluginConvention.getProject(); final List<ClassDirectoryBinarySpecInternal> binaries = Lists.newArrayList(); pluginConvention.getSourceSets().all(new Action<SourceSet>() { public void execute(final SourceSet sourceSet) { ConventionMapping outputConventionMapping = ((IConventionAware) sourceSet.getOutput()).getConventionMapping(); ConfigurationContainer configurations = project.getConfigurations(); defineConfigurationsForSourceSet(sourceSet, configurations); definePathsForSourceSet(sourceSet, outputConventionMapping, project); createProcessResourcesTaskForBinary(sourceSet, sourceSet.getResources(), project); createCompileJavaTaskForBinary(sourceSet, sourceSet.getJava(), project); createBinaryLifecycleTask(sourceSet, project); DefaultComponentSpecIdentifier binaryId = new DefaultComponentSpecIdentifier(project.getPath(), sourceSet.getName()); ClassDirectoryBinarySpecInternal binary = instantiator.newInstance(DefaultClassDirectoryBinarySpec.class, binaryId, sourceSet, javaToolChain, DefaultJavaPlatform.current(), instantiator, taskFactory); Classpath compileClasspath = new SourceSetCompileClasspath(sourceSet); DefaultJavaSourceSet javaSourceSet = instantiator.newInstance(DefaultJavaSourceSet.class, binaryId.child("java"), sourceSet.getJava(), compileClasspath); JvmResourceSet resourceSet = instantiator.newInstance(DefaultJvmResourceSet.class, binaryId.child("resources"), sourceSet.getResources()); binary.addSourceSet(javaSourceSet); binary.addSourceSet(resourceSet); attachTasksToBinary(binary, sourceSet, project); binaries.add(binary); } }); return new BridgedBinaries(binaries); }
Example #2
Source File: DefaultJavaSourceSet.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public DefaultJavaSourceSet(String name, SourceDirectorySet source, Classpath compileClasspath, FunctionalSourceSet parent) { super(name, parent, "Java source", source); this.compileClasspath = compileClasspath; }
Example #3
Source File: DefaultJavaSourceSet.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public Classpath getCompileClasspath() { return compileClasspath; }
Example #4
Source File: DefaultJavaSourceSet.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public DefaultJavaSourceSet(String name, SourceDirectorySet source, Classpath compileClasspath, FunctionalSourceSet parent) { super(name, parent, "Java source", source); this.compileClasspath = compileClasspath; }
Example #5
Source File: DefaultJavaSourceSet.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public Classpath getCompileClasspath() { return compileClasspath; }
Example #6
Source File: JavaSourceSet.java From pushfish-android with BSD 2-Clause "Simplified" License | votes |
Classpath getCompileClasspath();
Example #7
Source File: JavaSourceSet.java From Pushjet-Android with BSD 2-Clause "Simplified" License | votes |
Classpath getCompileClasspath();