org.gradle.api.artifacts.repositories.FlatDirectoryArtifactRepository Java Examples
The following examples show how to use
org.gradle.api.artifacts.repositories.FlatDirectoryArtifactRepository.
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: DefaultRepositoryHandler.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
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)); }
Example #2
Source File: DefaultRepositoryHandler.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
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)); }
Example #3
Source File: DefaultRepositoryHandler.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
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)); }
Example #4
Source File: DefaultRepositoryHandler.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
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)); }
Example #5
Source File: DefaultBaseRepositoryFactory.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public FlatDirectoryArtifactRepository createFlatDirRepository() { return instantiator.newInstance(DefaultFlatDirArtifactRepository.class, fileResolver, transportFactory, locallyAvailableResourceFinder, resolverStrategy, artifactFileStore); }
Example #6
Source File: DefaultRepositoryHandler.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public FlatDirectoryArtifactRepository flatDir(Action<? super FlatDirectoryArtifactRepository> action) { return addRepository(repositoryFactory.createFlatDirRepository(), FLAT_DIR_DEFAULT_NAME, action); }
Example #7
Source File: DefaultRepositoryHandler.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public FlatDirectoryArtifactRepository flatDir(Closure configureClosure) { return flatDir(new ClosureBackedAction<FlatDirectoryArtifactRepository>(configureClosure)); }
Example #8
Source File: DefaultBaseRepositoryFactory.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public FlatDirectoryArtifactRepository createFlatDirRepository() { return instantiator.newInstance(DefaultFlatDirArtifactRepository.class, fileResolver, transportFactory, locallyAvailableResourceFinder, resolverStrategy, artifactFileStore); }
Example #9
Source File: DefaultRepositoryHandler.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public FlatDirectoryArtifactRepository flatDir(Closure configureClosure) { return flatDir(new ClosureBackedAction<FlatDirectoryArtifactRepository>(configureClosure)); }
Example #10
Source File: DefaultRepositoryHandler.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public FlatDirectoryArtifactRepository flatDir(Action<? super FlatDirectoryArtifactRepository> action) { return addRepository(repositoryFactory.createFlatDirRepository(), FLAT_DIR_DEFAULT_NAME, action); }
Example #11
Source File: DefaultRepositoryHandler.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public FlatDirectoryArtifactRepository flatDir(Action<? super FlatDirectoryArtifactRepository> action) { return addRepository(repositoryFactory.createFlatDirRepository(), FLAT_DIR_DEFAULT_NAME, action); }
Example #12
Source File: DefaultRepositoryHandler.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public FlatDirectoryArtifactRepository flatDir(Closure configureClosure) { return flatDir(new ClosureBackedAction<FlatDirectoryArtifactRepository>(configureClosure)); }
Example #13
Source File: DefaultRepositoryHandler.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public FlatDirectoryArtifactRepository flatDir(Action<? super FlatDirectoryArtifactRepository> action) { return addRepository(repositoryFactory.createFlatDirRepository(), FLAT_DIR_DEFAULT_NAME, action); }
Example #14
Source File: DefaultRepositoryHandler.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public FlatDirectoryArtifactRepository flatDir(Closure configureClosure) { return flatDir(new ClosureBackedAction<FlatDirectoryArtifactRepository>(configureClosure)); }
Example #15
Source File: RepositoryHandler.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 2 votes |
/** * 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);
Example #16
Source File: RepositoryHandler.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 2 votes |
/** * 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);
Example #17
Source File: RepositoryHandler.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 2 votes |
/** * 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);
Example #18
Source File: RepositoryHandler.java From pushfish-android with BSD 2-Clause "Simplified" License | 2 votes |
/** * 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);
Example #19
Source File: RepositoryHandler.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 2 votes |
/** * 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);
Example #20
Source File: RepositoryHandler.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 2 votes |
/** * 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);
Example #21
Source File: RepositoryHandler.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 2 votes |
/** * 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);
Example #22
Source File: RepositoryHandler.java From pushfish-android with BSD 2-Clause "Simplified" License | 2 votes |
/** * 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);
Example #23
Source File: RepositoryHandler.java From pushfish-android with BSD 2-Clause "Simplified" License | 2 votes |
/** * 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);
Example #24
Source File: RepositoryHandler.java From pushfish-android with BSD 2-Clause "Simplified" License | 2 votes |
/** * 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);
Example #25
Source File: RepositoryHandler.java From pushfish-android with BSD 2-Clause "Simplified" License | 2 votes |
/** * 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);
Example #26
Source File: RepositoryHandler.java From pushfish-android with BSD 2-Clause "Simplified" License | 2 votes |
/** * 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);
Example #27
Source File: BaseRepositoryFactory.java From pushfish-android with BSD 2-Clause "Simplified" License | votes |
FlatDirectoryArtifactRepository createFlatDirRepository();
Example #28
Source File: BaseRepositoryFactory.java From Pushjet-Android with BSD 2-Clause "Simplified" License | votes |
FlatDirectoryArtifactRepository createFlatDirRepository();
Example #29
Source File: BaseRepositoryFactory.java From pushfish-android with BSD 2-Clause "Simplified" License | votes |
FlatDirectoryArtifactRepository createFlatDirRepository();
Example #30
Source File: BaseRepositoryFactory.java From Pushjet-Android with BSD 2-Clause "Simplified" License | votes |
FlatDirectoryArtifactRepository createFlatDirRepository();