本文整理了Java中org.jboss.forge.furnace.versions.Versions.isSnapshot()
方法的一些代码示例,展示了Versions.isSnapshot()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Versions.isSnapshot()
方法的具体详情如下:
包路径:org.jboss.forge.furnace.versions.Versions
类名称:Versions
方法名:isSnapshot
[英]Returns if the version specified is a SNAPSHOT
[中]如果指定的版本是快照,则返回
代码示例来源:origin: org.jboss.forge.furnace/furnace-manager-resolver-maven
if (Versions.isSnapshot(addonId.getVersion()))
代码示例来源:origin: org.jboss.forge.furnace/furnace-manager
if (Versions.isSnapshot(addon.getVersion()) && addonInfo.equals(requestedAddonInfo))
代码示例来源:origin: org.jboss.forge.addon/addon-manager-impl
@Override
@SuppressWarnings("unchecked")
public void start()
{
getAddonRegistry()
.getAddons(addon -> Versions.isSnapshot(addon.getId().getVersion())
&& addon.getRepository() instanceof MutableAddonRepository)
.stream()
.map(Addon::getId)
.forEach(addonId -> {
// Find local repository path for each addon
File installationPath = getInstallationPathFor(addonId);
FileResource<?> resource = getResourceFactory().create(FileResource.class, installationPath);
ResourceMonitor monitor = resource.monitor();
monitor.addResourceListener(e -> {
// Run addonManager.remove and addonManager.install
getAddonManager().remove(addonId).perform();
getAddonManager().install(addonId).perform();
});
monitors.put(addonId, monitor);
});
}
内容来源于网络,如有侵权,请联系作者删除!