Package org.gradle.api

Examples of org.gradle.api.GradleException


            throw lastFailure;
        } catch (java.net.ConnectException e) {
            throw new ConnectException(String.format("Could not connect to server %s. Tried addresses: %s.",
                    destinationUri, loopBackAddresses), e);
        } catch (Exception e) {
            throw new GradleException(String.format("Could not connect to server %s. Tried addresses: %s.",
                    destinationUri, loopBackAddresses), e);
        }
    }
View Full Code Here


                addresses.add(InetAddress.getByName(null));
            }
            LOGGER.debug("Found loop-back addresses: {}.", addresses);
            return addresses;
        } catch (Exception e) {
            throw new GradleException("Could not determine the local loop-back addresses.", e);
        }
    }
View Full Code Here

            }
        });
        try {
            executor.stop(120, TimeUnit.SECONDS);
        } catch (Throwable e) {
            throw new GradleException("Could not stop connection.", e);
        }
    }
View Full Code Here

            } while (System.currentTimeMillis() < expiry.getTime());
        } catch (Exception e) {
            throw UncheckedException.asUncheckedException(e);
        }

        throw new GradleException("Timeout waiting to connect to Gradle daemon.");
    }
View Full Code Here

                copyFile(target);
            }
            target.setLastModified(getLastModified());
            return true;
        } catch (Exception e) {
            throw new GradleException(String.format("Could not copy %s to '%s'.", getDisplayName(), target), e);
        }
    }
View Full Code Here

        for (ModuleDependency configurationDependency : configuration.getDependencies(ModuleDependency.class)) {
            if (dependency.equals(configurationDependency)) {
                return configurationDependency;
            }
        }
        throw new GradleException("Dependency could not be found. We should never get here!");
    }
View Full Code Here

            one(state).executed();
        }});

        executer.execute(task, state);

        GradleException exception = (GradleException) wrappedFailure.get();
        assertThat(exception.getMessage(), equalTo("Could not evaluate onlyIf predicate for <task>."));
        assertThat(exception.getCause(), sameInstance(failure));
    }
View Full Code Here

        }

        try {
            execAction.execute();
        } catch (ExecException e) {
            throw new GradleException("Javadoc generation failed.", e);
        }
    }
View Full Code Here

                    new DOMElementWriter(true).write(rootElement, outstr);
                } finally {
                    outstr.close();
                }
            } catch (IOException e) {
                throw new GradleException(String.format("Could not write test report file '%s'.", reportFile), e);
            }

            testSuite = null;
            outputs.clear();
        }
View Full Code Here

                    if (classFileExtracted) {
                        classFileSourceJar = jarFile;
                    }
                } catch (IOException e) {
                    throw new GradleException("failed to extract class file from jar (" + jarFile + ")", e);
                }
            }

            if (classFileExtracted) {
                LOGGER.debug("extracted class {} from {}", className, classFileSourceJar.getName());
View Full Code Here

TOP

Related Classes of org.gradle.api.GradleException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.