Here are the examples of the java api org.netbeans.modules.groovy.grails.api.GrailsPlatform.Version taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
18
Source : GrailsPluginSupport.java
with Apache License 2.0
from apache
with Apache License 2.0
from apache
public List<GrailsPlugin> loadInstalledPlugins() {
Version version = GrailsPlatform.getDefault().getVersion();
if (Version.VERSION_1_1.compareTo(version) <= 0) {
return loadInstalledPlugins11();
}
return loadInstalledPlugins10();
}
18
Source : GrailsPluginSupport.java
with Apache License 2.0
from apache
with Apache License 2.0
from apache
public boolean uninstallPlugins(Collection<GrailsPlugin> selectedPlugins) {
Version version = GrailsPlatform.getDefault().getVersion();
if (Version.VERSION_1_1.compareTo(version) <= 0) {
return uninstallPlugins11(selectedPlugins);
}
return uninstallPlugins10(selectedPlugins);
}