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();