Package org.jnode.install

Examples of org.jnode.install.ProgressListener


    public void execute() throws Exception {
        System.out.println("Installing jnode32.gz ...");
        CopyFile cf = new CopyFile(true);
        cf.setSource(new File("/devices/sg0/jnode32.gz"));
        cf.setDestination(new File(targetDirectory + "jnode32.gz"));
        cf.addProgressListener(new ProgressListener() {
            public void progress(ProgressEvent e) {
                System.out.print('.');
            }
        });
        cf.execute();
        System.out.println("Done.");

        System.out.println("Installing full.jgz ...");
        cf = new CopyFile(true);
        cf.setSource(new File("/devices/sg0/full.jgz"));
        cf.setDestination(new File(targetDirectory + "full.jgz"));
        cf.addProgressListener(new ProgressListener() {
            public void progress(ProgressEvent e) {
                System.out.print('.');
            }
        });
        cf.execute();
View Full Code Here

TOP

Related Classes of org.jnode.install.ProgressListener

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.