|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.frame4j.util.App
de.frame4j.Update
@MinDoc(copyright="Copyright 1998 - 2005, 2009 A. Weinert",
author="Albrecht Weinert",
version="V.55",
lastModified="28.07.2010",
lastModifiedBy="A. Weinert",
usage="start as Java application (-? for help)",
purpose="updates files and / or directories also by complex criteria")
public class Update
Update files and directories.
This application updates files for a source to a destination directory.
Optionally sub-directories can be worked on recursively. Additionally
it is possible to copy files to a backup-directory before they are
replaced in the destination directory.
The making of non existent destination directories can be forbidden.
Also, the creating of non existent files in the destination directories
can be prohibited; that would mean "update existing files
only".
Fundamental rule:
A file will be copied from the source to the destination directory if
not existing there or if there older than in source. For source files
of length 0 deleting in source instead of copying the empty file can be
chosen as option.
Attention: If source and destination directories are on different
computers (as network drives e.g.) different time handling and especially
asynchronous handling of daylight saving clock switches, can lead to
totally surprising results (like updating thousands of files in the wrong
direction). The same is true for diskettes or partitions using different
file systems. Those effects may be experienced with all tools depending on
file date/time — not just this one. But this features some safety /
counter measures proven efficient over some years of experience in
form of harder and adaptive age difference criteria.
The evaluation of age differences as update criterion may be switched off
(by the -xCopy option). This makes the update to a plain copy, but
featuring all the other FileService control possibilities.
Hint: To this application Update belongs (as integral
part) a .properties file named
Updatey.properties.
It's part of the documentation.
Copyright 1998 - 2005, 2009 Albrecht Weinert
App,
DataFile,
FileCriteria| Field Summary | |
|---|---|
String |
back
Backup directory. |
String |
dest
Destination directory. |
boolean |
reverse
Reverse roles of source and destination. default: false |
String |
source
Source directory with (optional) file specification. |
| Fields inherited from class de.frame4j.util.App |
|---|
ano, appBase, appIO, appStartTime, args, bgColor, err, fullClassName, help, icon, INIT_ERROR, jmxRemoteNote, JOB_DONE_OK, log, LOG_OUT_ERROR, MAIN_THREAD_EXC, mainThread, myClass, myFrame, name, NO_PARS_ERROR, objectName, out, outMode, packName, prop, retCode, runFlag, shortClassName, title, verbose, verbosity |
| Fields inherited from interface de.frame4j.net.AttrSettable |
|---|
ILLEGAL_TYPE, ILLEGAL_VALUE, NO_ATTRIBUTE, NO_KNOWN_ATTRIBUTE, NO_VALUE, OK |
| Constructor Summary | |
|---|---|
Update()
|
|
| Method Summary | |
|---|---|
int |
doIt()
Working method of Update. |
static void |
main(String[] args)
Start method of Update . |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public String source
public String dest
public boolean reverse
FileService.reversepublic String back
dest.
| Constructor Detail |
|---|
public Update()
| Method Detail |
|---|
public static void main(String[] args)
args - command line parameterdoIt()public int doIt()
doIt in class AppProp,
App.go(String[], boolean),
App.go(String[], String, boolean, CharSequence),
App.mainThread
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||