org.gradle.tooling.model.UnsupportedMethodException Java Examples
The following examples show how to use
org.gradle.tooling.model.UnsupportedMethodException.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DefaultModelBuilder.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
@Override protected String connectionFailureMessage(Throwable failure) { String message = String.format("Could not fetch model of type '%s' using %s.", modelType.getSimpleName(), connection.getDisplayName()); if (!(failure instanceof UnsupportedMethodException) && failure instanceof UnsupportedOperationException) { message += "\n" + Exceptions.INCOMPATIBLE_VERSION_HINT; } return message; }
Example #2
Source File: ConfiguringBuildAction.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
private static List<InternalLaunchable> getLaunchables(ProviderOperationParameters parameters) { try { return parameters.getLaunchables(); } catch (UnsupportedMethodException ume) { // older consumer version return null; } }
Example #3
Source File: DefaultModelBuilder.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
@Override protected String connectionFailureMessage(Throwable failure) { String message = String.format("Could not fetch model of type '%s' using %s.", modelType.getSimpleName(), connection.getDisplayName()); if (!(failure instanceof UnsupportedMethodException) && failure instanceof UnsupportedOperationException) { message += "\n" + Exceptions.INCOMPATIBLE_VERSION_HINT; } return message; }
Example #4
Source File: GradleProject.java From meghanada-server with GNU General Public License v3.0 | 5 votes |
private void setCompileTarget(final IdeaProject ideaProject) { final IdeaJavaLanguageSettings javaLanguageSettings = ideaProject.getJavaLanguageSettings(); try { final String srcLevel = javaLanguageSettings.getLanguageLevel().toString(); final String targetLevel = javaLanguageSettings.getTargetBytecodeVersion().toString(); super.compileSource = srcLevel; super.compileTarget = targetLevel; } catch (UnsupportedMethodException e) { log.warn(e.getMessage()); } }
Example #5
Source File: DefaultModelBuilder.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
@Override protected String connectionFailureMessage(Throwable failure) { String message = String.format("Could not fetch model of type '%s' using %s.", modelType.getSimpleName(), connection.getDisplayName()); if (!(failure instanceof UnsupportedMethodException) && failure instanceof UnsupportedOperationException) { message += "\n" + Exceptions.INCOMPATIBLE_VERSION_HINT; } return message; }
Example #6
Source File: ConfiguringBuildAction.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
private static List<InternalLaunchable> getLaunchables(ProviderOperationParameters parameters) { try { return parameters.getLaunchables(); } catch (UnsupportedMethodException ume) { // older consumer version return null; } }
Example #7
Source File: DefaultModelBuilder.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
@Override protected String connectionFailureMessage(Throwable failure) { String message = String.format("Could not fetch model of type '%s' using %s.", modelType.getSimpleName(), connection.getDisplayName()); if (!(failure instanceof UnsupportedMethodException) && failure instanceof UnsupportedOperationException) { message += "\n" + Exceptions.INCOMPATIBLE_VERSION_HINT; } return message; }
Example #8
Source File: Exceptions.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public static UnsupportedMethodException unsupportedMethod(String method) { return new UnsupportedMethodException(formatUnsupportedModelMethod(method)); }
Example #9
Source File: Exceptions.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public static UnsupportedMethodException unsupportedMethod(String method) { return new UnsupportedMethodException(formatUnsupportedModelMethod(method)); }
Example #10
Source File: Exceptions.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public static UnsupportedMethodException unsupportedMethod(String method) { return new UnsupportedMethodException(formatUnsupportedModelMethod(method)); }
Example #11
Source File: Exceptions.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public static UnsupportedMethodException unsupportedMethod(String method) { return new UnsupportedMethodException(formatUnsupportedModelMethod(method)); }
Example #12
Source File: HierarchicalEclipseProject.java From pushfish-android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Returns the linked resources for this project. * * @return The linked resources. * @since 1.0-milestone-4 * @throws org.gradle.tooling.model.UnsupportedMethodException * When the target Gradle version does not support this information. * You can safely catch ignore this exception and query the model for other information. */ DomainObjectSet<? extends EclipseLinkedResource> getLinkedResources() throws UnsupportedMethodException;
Example #13
Source File: HierarchicalEclipseProject.java From pushfish-android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Returns the linked resources for this project. * * @return The linked resources. * @since 1.0-milestone-4 * @throws org.gradle.tooling.model.UnsupportedMethodException * When the target Gradle version does not support this information. * You can safely catch ignore this exception and query the model for other information. */ DomainObjectSet<? extends EclipseLinkedResource> getLinkedResources() throws UnsupportedMethodException;
Example #14
Source File: HierarchicalEclipseProject.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Returns the linked resources for this project. * * @return The linked resources. * @since 1.0-milestone-4 * @throws org.gradle.tooling.model.UnsupportedMethodException * When the target Gradle version does not support this information. * You can safely catch ignore this exception and query the model for other information. */ DomainObjectSet<? extends EclipseLinkedResource> getLinkedResources() throws UnsupportedMethodException;
Example #15
Source File: HierarchicalEclipseProject.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Returns the linked resources for this project. * * @return The linked resources. * @since 1.0-milestone-4 * @throws org.gradle.tooling.model.UnsupportedMethodException * When the target Gradle version does not support this information. * You can safely catch ignore this exception and query the model for other information. */ DomainObjectSet<? extends EclipseLinkedResource> getLinkedResources() throws UnsupportedMethodException;