Java Code Examples for org.gradle.util.GUtil#flatten()
The following examples show how to use
org.gradle.util.GUtil#flatten() .
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: DefaultArtifactHandler.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public Object methodMissing(String name, Object arg) { Object[] args = (Object[]) arg; Configuration configuration = configurationContainer.findByName(name); if (configuration == null) { throw new MissingMethodException(name, this.getClass(), args); } List<Object> normalizedArgs = GUtil.flatten(Arrays.asList(args), false); if (normalizedArgs.size() == 2 && normalizedArgs.get(1) instanceof Closure) { return pushArtifact(configuration, normalizedArgs.get(0), (Closure) normalizedArgs.get(1)); } for (Object notation : args) { pushArtifact(configuration, notation, null); } return null; }
Example 2
Source File: DefaultArtifactHandler.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public Object methodMissing(String name, Object arg) { Object[] args = (Object[]) arg; Configuration configuration = configurationContainer.findByName(name); if (configuration == null) { throw new MissingMethodException(name, this.getClass(), args); } List<Object> normalizedArgs = GUtil.flatten(Arrays.asList(args), false); if (normalizedArgs.size() == 2 && normalizedArgs.get(1) instanceof Closure) { return pushArtifact(configuration, normalizedArgs.get(0), (Closure) normalizedArgs.get(1)); } for (Object notation : args) { pushArtifact(configuration, notation, null); } return null; }
Example 3
Source File: DefaultManifestMergeSpec.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public ManifestMergeSpec from(Object... mergePaths) { GUtil.flatten(mergePaths, this.mergePaths); return this; }
Example 4
Source File: DefaultObjectConfigurationAction.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public ObjectConfigurationAction to(Object... targets) { GUtil.flatten(targets, this.targets); return this; }
Example 5
Source File: DefaultObjectConfigurationAction.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public ObjectConfigurationAction to(Object... targets) { GUtil.flatten(targets, this.targets); return this; }
Example 6
Source File: DefaultManifestMergeSpec.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public ManifestMergeSpec from(Object... mergePaths) { GUtil.flatten(mergePaths, this.mergePaths); return this; }
Example 7
Source File: DefaultManifestMergeSpec.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public ManifestMergeSpec from(Object... mergePaths) { GUtil.flatten(mergePaths, this.mergePaths); return this; }
Example 8
Source File: DefaultObjectConfigurationAction.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public ObjectConfigurationAction to(Object... targets) { GUtil.flatten(targets, this.targets); return this; }
Example 9
Source File: DefaultObjectConfigurationAction.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public ObjectConfigurationAction to(Object... targets) { GUtil.flatten(targets, this.targets); return this; }
Example 10
Source File: DefaultManifestMergeSpec.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public ManifestMergeSpec from(Object... mergePaths) { GUtil.flatten(mergePaths, this.mergePaths); return this; }