Package org.gradle.api

Examples of org.gradle.api.UncheckedIOException


        try {
            ObjectOutputStream objectOutputStream = new ObjectOutputStream(outputStream);
            objectOutputStream.writeObject(object);
            objectOutputStream.close();
        } catch (IOException e) {
            throw new UncheckedIOException(e);
        }
        return outputStream.toByteArray();
    }
View Full Code Here


                getPom().writeTo(writer);
            } finally {
                writer.close();
            }
        } catch (IOException e) {
            throw new UncheckedIOException(e);
        }

        return new PomArtifact(pomFile);
    }
View Full Code Here

        try {
            File settingsXml = File.createTempFile("gradle_empty_settings", ".xml");
            FileUtils.writeStringToFile(settingsXml, SETTINGS_XML);
            return settingsXml;
        } catch (IOException e) {
            throw new UncheckedIOException(e);
        }
    }
View Full Code Here

    @Override
    protected void doAppend(String text) {
        try {
            outstr.write(text.getBytes());
        } catch (IOException e) {
            throw new UncheckedIOException(e);
        }
    }
View Full Code Here

        action.execute(ansi);
        try {
            target.append(ansi.toString());
            flushable.flush();
        } catch (IOException e) {
            throw new UncheckedIOException(e);
        }
    }
View Full Code Here

        PrintWriter printWriter = new PrintWriter(writer);
        try {
            getEffectiveManifest().generateAntManifest().write(printWriter);
            printWriter.flush();
        } catch (IOException e) {
            throw new UncheckedIOException(e);
        }
        return this;
    }
View Full Code Here

                return writeTo(writer);
            } finally {
                writer.close();
            }
        } catch (IOException e) {
            throw new UncheckedIOException(e);
        }
    }
View Full Code Here

            addAntManifestToAttributes(antManifest);
            addAntManifestToSections(antManifest);
        } catch (ManifestException e) {
            throw new org.gradle.api.java.archives.ManifestException(e.getMessage(), e);
        } catch (IOException e) {
            throw new UncheckedIOException(e.getMessage(), e);
        }
    }
View Full Code Here

        addStandardOutputListener(new StandardOutputListener() {
            public void onOutput(CharSequence output) {
                try {
                    out.append(output);
                } catch (IOException e) {
                    throw new UncheckedIOException(e);
                }
            }
        });
        return this;
    }
View Full Code Here

        addStandardErrorListener(new StandardOutputListener() {
            public void onOutput(CharSequence output) {
                try {
                    err.append(output);
                } catch (IOException e) {
                    throw new UncheckedIOException(e);
                }
            }
        });
        return this;
    }
View Full Code Here

TOP

Related Classes of org.gradle.api.UncheckedIOException

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.