public FlatDirectoryArtifactRepository flatDir(Map<String, ?> args) { Map<String, Object> modifiedArgs = new HashMap<String, Object>(args); if (modifiedArgs.containsKey("dirs")) { modifiedArgs.put("dirs", flattenCollections(modifiedArgs.get("dirs"))); } return flatDir(new ConfigureByMapAction<FlatDirectoryArtifactRepository>(modifiedArgs)); }
public FlatDirectoryArtifactRepository createFlatDirRepository() { return instantiator.newInstance(DefaultFlatDirArtifactRepository.class, fileResolver, transportFactory, locallyAvailableResourceFinder, artifactFileStore, ivyContextManager); }
public FlatDirectoryArtifactRepository flatDir(Action<? super FlatDirectoryArtifactRepository> action) { return addRepository(repositoryFactory.createFlatDirRepository(), FLAT_DIR_DEFAULT_NAME, action); }
public FlatDirectoryArtifactRepository flatDir(Closure configureClosure) { return flatDir(ConfigureUtil.configureUsing(configureClosure)); }
public FlatDirectoryArtifactRepository createFlatDirRepository() { return instantiator.newInstance(DefaultFlatDirArtifactRepository.class, fileResolver, transportFactory, locallyAvailableResourceFinder, resolverStrategy, artifactFileStore); }
public FlatDirectoryArtifactRepository flatDir(Closure configureClosure) { return flatDir(new ClosureBackedAction<FlatDirectoryArtifactRepository>(configureClosure)); }
/** * Adds a resolver that looks into a number of directories for artifacts. The artifacts are expected to be located in the * root of the specified directories. The resolver ignores any group/organization information specified in the * dependency section of your build script. If you only use this kind of resolver you might specify your * dependencies like <code>":junit:4.4"</code> instead of <code>"junit:junit:4.4"</code>. * * The following parameter are accepted as keys for the map: * * <table summary="Shows property keys and associated values"> * <tr><th>Key</th> * <th>Description of Associated Value</th></tr> * <tr><td><code>name</code></td> * <td><em>(optional)</em> The name of the repository. * The default is a Hash value of the rootdir paths. The name is used in the console output, * to point to information related to a particular repository. A name must be unique amongst a repository group.</td></tr> * <tr><td><code>dirs</code></td> * <td>Specifies a list of rootDirs where to look for dependencies. These are evaluated as per {@link org.gradle.api.Project#files(Object...)}</td></tr> * </table> * * <p>Examples: * <pre autoTested=''> * repositories { * flatDir name: 'libs', dirs: "$projectDir/libs" * flatDir dirs: ["$projectDir/libs1", "$projectDir/libs2"] * } * </pre> * </p> * * @param args The arguments used to configure the repository. * @return the added resolver * @throws org.gradle.api.InvalidUserDataException In the case neither rootDir nor rootDirs is specified of if both * are specified. */ FlatDirectoryArtifactRepository flatDir(Map<String, ?> args);
/** * Adds an configures a repository which will look for dependencies in a number of local directories. * * @param configureClosure The closure to execute to configure the repository. * @return The repository. */ FlatDirectoryArtifactRepository flatDir(Closure configureClosure);
/** * Adds an configures a repository which will look for dependencies in a number of local directories. * * @param action The action to execute to configure the repository. * @return The repository. */ FlatDirectoryArtifactRepository flatDir(Action<? super FlatDirectoryArtifactRepository> action);
FlatDirectoryArtifactRepository createFlatDirRepository();