/** This is used by consumers 1.6-rc-1 and later */ public BuildResult<?> getModel( ModelIdentifier modelIdentifier, BuildParameters operationParameters) throws UnsupportedOperationException, IllegalStateException { logTargetVersion(); ProviderOperationParameters providerParameters = toProviderParameters(operationParameters); Object result = connection.run(modelIdentifier.getName(), providerParameters); return new ProviderBuildResult<Object>(result); }
/** This is used by consumers 1.6-rc-1 and later */ public BuildResult<?> getModel( ModelIdentifier modelIdentifier, BuildParameters operationParameters) throws UnsupportedOperationException, IllegalStateException { validateCanRun(); ProviderOperationParameters providerParameters = toProviderParameters(operationParameters); Object result = connection.run( modelIdentifier.getName(), new FixedBuildCancellationToken(), providerParameters); return new ProviderBuildResult<Object>(result); }
/** This is used by consumers 2.1-rc-1 and later */ public BuildResult<?> getModel( ModelIdentifier modelIdentifier, InternalCancellationToken cancellationToken, BuildParameters operationParameters) throws BuildExceptionVersion1, InternalUnsupportedModelException, InternalUnsupportedBuildArgumentException, IllegalStateException { validateCanRun(); ProviderOperationParameters providerParameters = toProviderParameters(operationParameters); BuildCancellationToken buildCancellationToken = new BuildCancellationTokenAdapter(cancellationToken); Object result = connection.run(modelIdentifier.getName(), buildCancellationToken, providerParameters); return new ProviderBuildResult<Object>(result); }