本文整理了Java中org.gradle.api.Project.getResources()
方法的一些代码示例,展示了Project.getResources()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Project.getResources()
方法的具体详情如下:
包路径:org.gradle.api.Project
类名称:Project
方法名:getResources
暂无
代码示例来源:origin: io.freefair.gradle/android-gradle-plugins
/**
* The filename of a filter specifying bugs to exclude from being reported.
*/
public void setExcludeFilter(File filter) {
setExcludeFilterConfig(project.getResources().getText().fromFile(filter));
}
代码示例来源:origin: gradle.plugin.com.github.spotbugs/spotbugs-gradle-plugin
/**
* The filename of a filter specifying which bugs are reported.
*
* @param filter
* filename of a filter specifying which bugs are reported
*/
public void setIncludeFilter(File filter) {
setIncludeFilterConfig(project.getResources().getText().fromFile(filter));
}
代码示例来源:origin: io.freefair.gradle/android-gradle-plugins
/**
* The filename of a filter specifying which bugs are reported.
*/
public void setIncludeFilter(File filter) {
setIncludeFilterConfig(project.getResources().getText().fromFile(filter));
}
代码示例来源:origin: gradle.plugin.com.github.spotbugs/spotbugs-gradle-plugin
/**
* The filename of a filter specifying bugs to exclude from being reported.
*
* @param filter
* filename of a filter specifying bugs to exclude from being reported
*/
public void setExcludeFilter(File filter) {
setExcludeFilterConfig(project.getResources().getText().fromFile(filter));
}
代码示例来源:origin: gradle.plugin.com.github.spotbugs/spotbugs-gradle-plugin
/**
* The filename of a filter specifying baseline bugs to exclude from being reported.
*
* @param filter
* filename of a filter specifying baseline bugs to exclude from being reported
*/
public void setExcludeBugsFilter(File filter) {
setExcludeBugsFilterConfig(project.getResources().getText().fromFile(filter));
}
代码示例来源:origin: gradle.plugin.com.github.spotbugs/gradlePlugin
/**
* The filename of a filter specifying bugs to exclude from being reported.
*
* @param filter
* filename of a filter specifying bugs to exclude from being reported
*/
public void setExcludeFilter(File filter) {
setExcludeFilterConfig(project.getResources().getText().fromFile(filter));
}
代码示例来源:origin: io.freefair.gradle/android-gradle-plugins
/**
* The filename of a filter specifying baseline bugs to exclude from being reported.
*/
public void setExcludeBugsFilter(File filter) {
setExcludeBugsFilterConfig(project.getResources().getText().fromFile(filter));
}
代码示例来源:origin: gradle.plugin.com.github.spotbugs/gradlePlugin
/**
* The filename of a filter specifying baseline bugs to exclude from being reported.
*
* @param filter
* filename of a filter specifying baseline bugs to exclude from being reported
*/
public void setExcludeBugsFilter(File filter) {
setExcludeBugsFilterConfig(project.getResources().getText().fromFile(filter));
}
代码示例来源:origin: io.freefair.gradle/android-gradle-plugins
/**
* The Checkstyle configuration file to use.
*/
public void setConfigFile(File configFile) {
setConfig(project.getResources().getText().fromFile(configFile));
}
代码示例来源:origin: gradle.plugin.com.github.spotbugs/gradlePlugin
/**
* The filename of a filter specifying which bugs are reported.
*
* @param filter
* filename of a filter specifying which bugs are reported
*/
public void setIncludeFilter(File filter) {
setIncludeFilterConfig(project.getResources().getText().fromFile(filter));
}
代码示例来源:origin: io.freefair.gradle/android-gradle-plugins
@Override
protected SourceSetBasedCodeQualityExtension createExtension() {
extension = project.getExtensions().create("checkstyle", AndroidCheckstyleExtension.class, project);
extension.setToolVersion(DEFAULT_CHECKSTYLE_VERSION);
extension.getConfigDirectory().set(determineConfigurationDirectory());
extension.setConfig(project.getResources().getText().fromFile(new Callable<File>() {
@Override
public File call() {
return new File(extension.getConfigDir(), "checkstyle.xml");
}
}));
return extension;
}
代码示例来源:origin: gradle.plugin.com.github.spotbugs/gradlePlugin
/**
* The filename of a filter specifying which bugs are reported.
*
* @param filter
* filename of a filter specifying which bugs are report
*/
public void setIncludeFilter(File filter) {
setIncludeFilterConfig(getProject().getResources().getText().fromFile(filter));
}
代码示例来源:origin: gradle.plugin.com.github.spotbugs/gradlePlugin
/**
* The filename of a filter specifying baseline bugs to exclude from being reported.
*
* @param filter
* filename of a filter specifying baseline bugs to exclude from being reported
*/
public void setExcludeBugsFilter(File filter) {
setExcludeBugsFilterConfig(getProject().getResources().getText().fromFile(filter));
}
代码示例来源:origin: gradle.plugin.com.github.spotbugs/spotbugs-gradle-plugin
/**
* The filename of a filter specifying which bugs are reported.
*
* @param filter
* filename of a filter specifying which bugs are report
*/
public void setIncludeFilter(File filter) {
setIncludeFilterConfig(getProject().getResources().getText().fromFile(filter));
}
代码示例来源:origin: gradle.plugin.com.github.spotbugs/gradlePlugin
/**
* The filename of a filter specifying bugs to exclude from being reported.
*
* @param filter
* filename of a filter specifying bugs to exclude from being reported
*/
public void setExcludeFilter(File filter) {
setExcludeFilterConfig(getProject().getResources().getText().fromFile(filter));
}
代码示例来源:origin: gradle.plugin.com.github.spotbugs/spotbugs-gradle-plugin
/**
* The filename of a filter specifying bugs to exclude from being reported.
*
* @param filter
* filename of a filter specifying bugs to exclude from being reported
*/
public void setExcludeFilter(File filter) {
setExcludeFilterConfig(getProject().getResources().getText().fromFile(filter));
}
代码示例来源:origin: gradle.plugin.com.github.spotbugs/spotbugs-gradle-plugin
/**
* The filename of a filter specifying baseline bugs to exclude from being reported.
*
* @param filter
* filename of a filter specifying baseline bugs to exclude from being reported
*/
public void setExcludeBugsFilter(File filter) {
setExcludeBugsFilterConfig(getProject().getResources().getText().fromFile(filter));
}
代码示例来源:origin: gradle.plugin.com.outlinegames/plugin
public static FileTree mergeArchives(Project project, HashMultimap<File, String> filesAndPaths) {
FileTree result = null;
for (File file : filesAndPaths.keys()) {
ReadableResource resource = project.getResources().gzip(file);
PatternSet pattern = new PatternSet();
for (String s : filesAndPaths.get(file)) {
pattern.include(String.format("**/%s/**", s));
}
FileTree tree = project.tarTree(resource).matching(pattern);
if (null == result) {
result = tree;
} else {
result = result.plus(tree);
}
}
return result;
}
代码示例来源:origin: gradle.plugin.com.banderous.gpm/plugin
public static FileTree mergeArchives(Project project, HashMultimap<File, String> filesAndPaths) {
FileTree result = null;
for (File file : filesAndPaths.keys()) {
ReadableResource resource = project.getResources().gzip(file);
PatternSet pattern = new PatternSet();
for (String s : filesAndPaths.get(file)) {
pattern.include(String.format("**/%s/**", s));
}
FileTree tree = project.tarTree(resource).matching(pattern);
if (null == result) {
result = tree;
} else {
result = result.plus(tree);
}
}
return result;
}
代码示例来源:origin: gradle.plugin.com.github.rmee/kubernetes
copySpec.from(project.zipTree(compressedFile));
} else {
copySpec.from(project.tarTree(project.getResources().gzip(compressedFile)));
内容来源于网络,如有侵权,请联系作者删除!