Java Code Examples for org.gradle.util.ConfigureUtil#configure()
The following examples show how to use
org.gradle.util.ConfigureUtil#configure() .
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: DownloadExtension.java From gradle-download-task with Apache License 2.0 | 5 votes |
@Override public DownloadExtension configure(@SuppressWarnings("rawtypes") Closure cl) { DownloadAction da = ConfigureUtil.configure(cl, new DownloadAction(project)); try { da.execute(); } catch (IOException e) { String message = e.getMessage(); if (message == null) { message = "Could not download file"; } throw new IllegalStateException(message, e); } return this; }
Example 2
Source File: PutnamiExtension.java From putnami-gradle-plugin with GNU Lesser General Public License v3.0 | 4 votes |
public PutnamiExtension jetty(Closure<JettyOption> c) { ConfigureUtil.configure(c, jetty); return this; }
Example 3
Source File: AbstractFileTree.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public FileTree matching(Closure filterConfigClosure) { PatternSet patternSet = new PatternSet(); ConfigureUtil.configure(filterConfigClosure, patternSet); return matching(patternSet); }
Example 4
Source File: AbstractProject.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public void buildscript(Closure configureClosure) { ConfigureUtil.configure(configureClosure, getBuildscript()); }
Example 5
Source File: AbstractScriptHandler.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public void repositories(Closure configureClosure) { ConfigureUtil.configure(configureClosure, repositoryHandler); }
Example 6
Source File: DefaultNamedDomainObjectCollection.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public T getByName(String name, Closure configureClosure) throws UnknownDomainObjectException { T t = getByName(name); ConfigureUtil.configure(configureClosure, t); return t; }
Example 7
Source File: TypedDomainObjectContainerWrapper.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public NamedDomainObjectContainer<U> configure(Closure configureClosure) { NamedDomainObjectContainerConfigureDelegate delegate = new NamedDomainObjectContainerConfigureDelegate(configureClosure.getOwner(), this); ConfigureUtil.configure(configureClosure, delegate); return this; }
Example 8
Source File: DefaultArtifactRepositoryContainer.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public DefaultArtifactRepositoryContainer configure(Closure closure) { return ConfigureUtil.configure(closure, this, false); }
Example 9
Source File: DefaultSourceSet.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public SourceSet java(Closure configureClosure) { ConfigureUtil.configure(configureClosure, getJava()); return this; }
Example 10
Source File: DefaultScriptHandler.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public void dependencies(Closure configureClosure) { ConfigureUtil.configure(configureClosure, dependencyHandler); }
Example 11
Source File: BasePomFilterContainer.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public MavenPom pom(String name, Closure configureClosure) { return ConfigureUtil.configure(configureClosure, pom(name)); }
Example 12
Source File: BasePomFilterContainer.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public MavenPom pom(Closure configureClosure) { return ConfigureUtil.configure(configureClosure, getPom()); }
Example 13
Source File: PutnamiExtension.java From putnami-gradle-plugin with GNU Lesser General Public License v3.0 | 4 votes |
public PutnamiExtension compile(Closure<CompilerOption> c) { ConfigureUtil.configure(c, compile); return this; }
Example 14
Source File: AbstractProject.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public Project project(String path, Closure configureClosure) { return ConfigureUtil.configure(configureClosure, project(path)); }
Example 15
Source File: AbstractScriptHandler.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public void dependencies(Closure configureClosure) { ConfigureUtil.configure(configureClosure, dependencyHandler); }
Example 16
Source File: DefaultScript.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public void buildscript(Closure configureClosure) { ConfigureUtil.configure(configureClosure, getBuildscript()); }
Example 17
Source File: ClientExtension.java From client-gradle-plugin with BSD 3-Clause "New" or "Revised" License | 4 votes |
public void attachConfig(Closure<?> configureClosure) { ConfigureUtil.configure(configureClosure, attachConfiguration); }
Example 18
Source File: Jar.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Adds content to this JAR archive's META-INF directory. * * <p>The given closure is executed to configure a {@code CopySpec}. The {@link org.gradle.api.file.CopySpec} is passed to the closure as its delegate.</p> * * @param configureClosure The closure. * @return The created {@code CopySpec} */ public CopySpec metaInf(Closure<?> configureClosure) { return ConfigureUtil.configure(configureClosure, getMetaInf()); }
Example 19
Source File: Jar.java From javaide with GNU General Public License v3.0 | 2 votes |
/** * Configures the manifest for this JAR archive. * * <p>The given closure is executed to configure the manifest. The {@link org.gradle.api.java.archives.Manifest} is passed to the closure as its delegate.</p> * * @param configureClosure The closure. * @return This. */ public Jar manifest(Closure<?> configureClosure) { ConfigureUtil.configure(configureClosure, forceManifest()); return this; }
Example 20
Source File: Test.java From pushfish-android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Allows configuring the logging of the test execution, for example log eagerly the standard output, etc. <pre autoTested=''> apply plugin: 'java' * * //makes the standard streams (err and out) visible at console when running tests test.testLogging { showStandardStreams = true } </pre> * * @param closure configure closure */ public void testLogging(Closure closure) { ConfigureUtil.configure(closure, testLogging); }