当前位置: 首页>>代码示例>>Java>>正文


Java FlatDirectoryArtifactRepository类代码示例

本文整理汇总了Java中org.gradle.api.artifacts.repositories.FlatDirectoryArtifactRepository的典型用法代码示例。如果您正苦于以下问题:Java FlatDirectoryArtifactRepository类的具体用法?Java FlatDirectoryArtifactRepository怎么用?Java FlatDirectoryArtifactRepository使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


FlatDirectoryArtifactRepository类属于org.gradle.api.artifacts.repositories包,在下文中一共展示了FlatDirectoryArtifactRepository类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: flatDir

import org.gradle.api.artifacts.repositories.FlatDirectoryArtifactRepository; //导入依赖的package包/类
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));
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:8,代码来源:DefaultRepositoryHandler.java

示例2: createFlatDirRepository

import org.gradle.api.artifacts.repositories.FlatDirectoryArtifactRepository; //导入依赖的package包/类
public FlatDirectoryArtifactRepository createFlatDirRepository() {
    return instantiator.newInstance(DefaultFlatDirArtifactRepository.class, fileResolver, transportFactory,
            locallyAvailableResourceFinder, artifactFileStore, ivyContextManager);
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:5,代码来源:DefaultBaseRepositoryFactory.java

示例3: createFlatDirRepository

import org.gradle.api.artifacts.repositories.FlatDirectoryArtifactRepository; //导入依赖的package包/类
public FlatDirectoryArtifactRepository createFlatDirRepository() {
    return instantiator.newInstance(DefaultFlatDirArtifactRepository.class, fileResolver, transportFactory,
            locallyAvailableResourceFinder, resolverStrategy, artifactFileStore);
}
 
开发者ID:Pushjet,项目名称:Pushjet-Android,代码行数:5,代码来源:DefaultBaseRepositoryFactory.java

示例4: flatDir

import org.gradle.api.artifacts.repositories.FlatDirectoryArtifactRepository; //导入依赖的package包/类
/**
 * 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);
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:35,代码来源:RepositoryHandler.java

示例5: createFlatDirRepository

import org.gradle.api.artifacts.repositories.FlatDirectoryArtifactRepository; //导入依赖的package包/类
FlatDirectoryArtifactRepository createFlatDirRepository(); 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:2,代码来源:BaseRepositoryFactory.java


注:本文中的org.gradle.api.artifacts.repositories.FlatDirectoryArtifactRepository类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。