當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。