@MinDoc(copyright="Copyright 1998 - 2004, 2009 A. Weinert", author="Albrecht Weinert", version="V.65", lastModified="3.06.2024", usage="start as Java application (-? for help)", purpose="delete files and / or directories specified also by complex criteria") public class Era extends App implements FileVisitor
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
Prop
erties. See
FileService
.
set(PropMap)
.App
lication'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
,
FileHelper
,
FileCriteria
,
FileService
FileVisitor.Ask, FileVisitor.AskConsImpl, FileVisitor.AskGrafImpl
ComVar.Impl
Modifier and Type | Field and Description |
---|---|
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.
|
ano, appBase, appIO, appStartTime, appStartTimeMS, args, argsOrig, bgColor, err, fullClassName, help, icon, log, mainThread, myClass, myFrame, name, out, outMode, packName, prop, retCode, runFlag, shortClassName, title, verbose, verbosity
AUTHOR, BLANK_STRING, cons, CONSOL_ENCODING, COPYRIGHT, D, D_NaN, D_NegInf, D_PosInf, EMPTY_INT_A, EMPTY_STRING, FILE_ENCODING, FRW_CLLD, FS, FSS, H, hasCons, HOST_IP, HOST_IPv4, HOST_NAME, INIT_ERROR, JAR_ENCODING, JH, JOB_DONE_OK, JRL, LOG_OUT_ERROR, M, MAIN_THREAD_EXC, NO_BYTES, NO_CLASSES, NO_DOUBLES, NO_OBJECTS, NO_PARS_ERROR, NO_STRINGS, NOT_WINDOWS, ON_PI, ONE_DAY, ONE_HOUR, ONE_LEAP_YEAR, ONE_MINUTE, ONE_SECOND, ONE_WEEK, ONE_YEAR, OS, PROG_NAME, PROG_SHORT, PS, RUNTIME, S, SHY, UD, UL, UL_UR_da, UR
ILLEGAL_TYPE, ILLEGAL_VALUE, NO_ATTRIBUTE, NO_KNOWN_ATTRIBUTE, NO_VALUE, OK, retVtext
Constructor and Description |
---|
Era() |
Modifier and Type | Method and Description |
---|---|
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(File aktDatei)
File visit.
|
actionPerformed, allowNoPropertiesFile, clientOrder, condHelpLog, connect, errMeld, errMeld, errorExit, errorExit, errorText, extraPropertiesFile, formMessage, formMessage, formMessage, getAbout, getAboutText, getActTime, getAppLogger, getAppStartTime, getArgs, getAuthor, getCopyright, getDbLogger, getExecTimeMs, getExecTimeMsL, getExecTimeString, getHelp, getHelpText, getIcon, getLanguage, getLogHandler, getMessageComponent, getMessageComponentsLength, getMyFrame, getName, getNameWithVersDate, getOutMode, getProp, getPurpose, getStartTime, getStateString, getTheCloser, getTitle, getUsage, getVerbose, getVerbosity, getVersDate, go, go, go, haveIcon, isDebug, isHelp, isHelpLog, isNormal, isRunFlag, isSilent, isTest, isVerbose, logVerbose, logVerbose, makeStatusTextEnd, makeStatusTextStart, messageFormat, normalExit, performeAction, queueAction, regAsStdMBean, repExc, setAboutText, setAttribute, setAttribute, setAuthor, setBgColor, setCodePages, setCopyright, setHelp, setLogOut2, setName, setOutMode, setOutMode, setPurpose, setTitle, setUsage, setVerbose, setVerbose, setVerbosity, setVerbosity, setVersDate, stop, threeLineEndMsg, toString, twoLineEndMsg, twoLineStartMsg, valueLang, valueLang, wakeMainThread
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
retVtext
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
public final boolean parsePartial()
parsePartial
in class App
App(String[])
public int visit(File aktDatei)
visit
in interface FileVisitor
aktDatei
- the file or directory to act upon or to determine a filter /
function response aboutdoUpDate()
public static void main(String[] args)
args
- command line parameter public int doIt()
doIt
in class App
Prop
,
App.go(String[])
,
App.go(String[], String, CharSequence)
,
App.mainThread