本文整理汇总了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));
}
示例2: createFlatDirRepository
import org.gradle.api.artifacts.repositories.FlatDirectoryArtifactRepository; //导入依赖的package包/类
public FlatDirectoryArtifactRepository createFlatDirRepository() {
return instantiator.newInstance(DefaultFlatDirArtifactRepository.class, fileResolver, transportFactory,
locallyAvailableResourceFinder, artifactFileStore, ivyContextManager);
}
示例3: createFlatDirRepository
import org.gradle.api.artifacts.repositories.FlatDirectoryArtifactRepository; //导入依赖的package包/类
public FlatDirectoryArtifactRepository createFlatDirRepository() {
return instantiator.newInstance(DefaultFlatDirArtifactRepository.class, fileResolver, transportFactory,
locallyAvailableResourceFinder, resolverStrategy, artifactFileStore);
}
示例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);
示例5: createFlatDirRepository
import org.gradle.api.artifacts.repositories.FlatDirectoryArtifactRepository; //导入依赖的package包/类
FlatDirectoryArtifactRepository createFlatDirRepository();