Examples of LazyFileOutputStream


Examples of com.exe4j.runtime.util.LazyFileOutputStream

            }
        }

        if (isLoadedFromJar()) {
            File stdErrFile = new File(System.getProperty("java.io.tmpdir"), "jclasslib_error.log");
            PrintStream err = new PrintStream(new BufferedOutputStream(new LazyFileOutputStream(stdErrFile.getPath())), true);
            System.setErr(err);
        }
        StartupNotification.registerStartupListener(new StartupNotification.Listener() {
            @Override
            public void startupPerformed(String argLine) {
View Full Code Here

Examples of org.apache.maven.wagon.LazyFileOutputStream

        File file = new File( getRepository().getBasedir(), resource.getName() );

        createParentDirectories( file );

        OutputStream outputStream = new BufferedOutputStream( new LazyFileOutputStream( file ) );

        outputData.setOutputStream( outputStream );
    }
View Full Code Here

Examples of org.apache.maven.wagon.LazyFileOutputStream

        File file = new File( getRepository().getBasedir(), resource.getName() );

        createParentDirectories( file );

        OutputStream outputStream = new LazyFileOutputStream( file );

        outputData.setOutputStream( outputStream );
    }
View Full Code Here

Examples of org.apache.maven.wagon.LazyFileOutputStream

        File file = new File( getRepository().getBasedir(), resource.getName() );

        createParentDirectories( file );

        OutputStream outputStream = new BufferedOutputStream( new LazyFileOutputStream( file ) );

        outputData.setOutputStream( outputStream );
    }
View Full Code Here

Examples of org.apache.maven.wagon.LazyFileOutputStream

        File file = new File( getRepository().getBasedir(), resource.getName() );

        createParentDirectories( file );

        OutputStream outputStream = new BufferedOutputStream( new LazyFileOutputStream( file ) );

        outputData.setOutputStream( outputStream );
    }
View Full Code Here

Examples of org.apache.maven.wagon.LazyFileOutputStream

        File file = new File( getRepository().getBasedir(), resource.getName() );

        createParentDirectories( file );

        OutputStream outputStream = new BufferedOutputStream( new LazyFileOutputStream( file ) );

        outputData.setOutputStream( outputStream );
    }
View Full Code Here

Examples of org.apache.tools.ant.util.LazyFileOutputStream

        }
    }

    private OutputStream foldFiles(File[] file, String logHead, int loglevel) {
        OutputStream result
            = new LazyFileOutputStream(file[0], append, createEmptyFiles);

        managingTask.log(logHead + file[0], loglevel);
        char[] c = new char[logHead.length()];
        Arrays.fill(c, ' ');
        String indent = new String(c);

        for (int i = 1; i < file.length; i++) {
            outputStream = new TeeOutputStream(outputStream,
                new LazyFileOutputStream(file[i], append, createEmptyFiles));
            managingTask.log(indent + file[i], loglevel);
        }
        return result;
    }
View Full Code Here

Examples of org.apache.tools.ant.util.LazyFileOutputStream

        if (out == null && outputProperty == null) {
            outputStream = new LogOutputStream(managingTask, Project.MSG_INFO);
            errorStream = new LogOutputStream(managingTask, Project.MSG_WARN);
        } else {
            if (out != null)  {
                outputStream = new LazyFileOutputStream(out, append);
                managingTask.log("Output redirected to " + out,
                                 Project.MSG_VERBOSE);
            }

            if (outputProperty != null) {
                baos = new ByteArrayOutputStream();
                managingTask.log("Output redirected to property: "
                    + outputProperty, Project.MSG_VERBOSE);
                if (out == null) {
                    outputStream = baos;
                } else {
                    outputStream = new TeeOutputStream(outputStream, baos);
                }
            } else {
                baos = null;
            }

            errorStream = outputStream;
        }

        if (logError) {
            errorStream = new LogOutputStream(managingTask, Project.MSG_WARN);
        }

        if (error != null)  {
            errorStream = new LazyFileOutputStream(error, append);
            managingTask.log("Error redirected to " + error,
                             Project.MSG_VERBOSE);
        }

        if (errorProperty != null) {
View Full Code Here

Examples of org.apache.tools.ant.util.LazyFileOutputStream

        }
    }

    private OutputStream foldFiles(File[] file, String logHead, int loglevel,
            boolean append, boolean createEmptyFiles) {
        OutputStream result = new LazyFileOutputStream(file[0], append,
                createEmptyFiles);

        managingTask.log(logHead + file[0], loglevel);
        char[] c = new char[logHead.length()];
        Arrays.fill(c, ' ');
        String indent = new String(c);

        for (int i = 1; i < file.length; i++) {
            outputStream = new TeeOutputStream(outputStream,
                    new LazyFileOutputStream(file[i], append, createEmptyFiles));
            managingTask.log(indent + file[i], loglevel);
        }
        return result;
    }
View Full Code Here

Examples of org.apache.tools.ant.util.LazyFileOutputStream

        }
    }

    private OutputStream foldFiles(File[] file, String logHead, int loglevel,
            boolean append, boolean createEmptyFiles) {
        OutputStream result = new LazyFileOutputStream(file[0], append,
                createEmptyFiles);

        managingTask.log(logHead + file[0], loglevel);
        char[] c = new char[logHead.length()];
        Arrays.fill(c, ' ');
        String indent = new String(c);

        for (int i = 1; i < file.length; i++) {
            outputStream = new TeeOutputStream(outputStream,
                    new LazyFileOutputStream(file[i], append, createEmptyFiles));
            managingTask.log(indent + file[i], loglevel);
        }
        return result;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.