|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.frame4j.util.App
de.frame4j.Era
@MinDoc(copyright="Copyright 1998 - 2004, 2009 A. Weinert",
author="Albrecht Weinert",
version="V.64",
lastModified="15.05.2012",
lastModifiedBy="A. Weinert",
usage="start as Java application (-? for help)",
purpose="delete files and / or directories specified also by complex criteria")
public class Era
Delete files.
The application Era deletes files and directories.
Multiple files can be specified in the command line or by a list (text)
file preferably generated by FS and edited afterwards. The file
specifications allow so called wild cards as well as type lists:
..\tmp\+.j+
..\tmp\class;bak;tmp;obj;map
Options stand for
Properties. See
FileService .
set(PropMap).Application's modi beforehand independent of
their position. (As the most simple example -h might appear anywhere,
and the application does nothing but output the online help.)
java Era -v -r build/+.class -nr A+.bat -y FS may be directly used as file
lists for this application Era. ..\tmp\+.j+
..\tmp\class;bak;tmp;obj;map
Prop,
App,
DataFile,
FileCriteria,
FileService| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface de.frame4j.io.FileVisitor |
|---|
FileVisitor.Ask, FileVisitor.AskConsImpl, FileVisitor.AskGrafImpl |
| Field Summary | |
|---|---|
boolean |
askBefore
Do ask before a delete. |
boolean |
fDel
Delete files. |
String |
omitDirs
(Sub-) directories not to consider. |
boolean |
tDel
Delete directories (also). |
String |
workDir
Specification of a (one) base directory for all deletes. |
| 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 | |
|---|---|
Era()
|
|
| Method Summary | |
|---|---|
int |
doIt()
Era's working method. |
static void |
main(String[] args)
Era's start method. |
boolean |
parsePartial()
Era wants only partial parameter parsing by Prop. |
int |
visit(DataFile aktDatei)
File visit. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public String omitDirs
FileCriteria.excludeNames) the
specified (sub) directories are excluded from visiting.
public boolean askBefore
public String workDir
public boolean fDel
public boolean tDel
| Constructor Detail |
|---|
public Era()
| Method Detail |
|---|
public boolean parsePartial()
parsePartial in class Apppublic int visit(DataFile aktDatei)
visit in interface FileVisitoraktDatei - the file or directory to act upon or to determine a filter /
function response about
doUpDate()public static void main(String[] args)
args - command line parameter 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 | ||||||||