@MinDoc(copyright="Copyright 2003 - 2013, 2016, 2017 A. Weinert", author="Albrecht Weinert", version="V.50", lastModified="4.06.2021", usage="start as Java application (-? for help)", purpose="refine and beautify text files got from SVN") public class SVNkeys extends App implements FileVisitor
TimeHelper.format(CharSequence, java.time.ZonedDateTime)
) TimeHelper.format(CharSequence, java.time.ZonedDateTime)
)de.frame4j.util.Prop
(see
setFields()
).SVNkeys
gets the types of text files to modify
by the property
FileCriteria
.types
, the default
see above or in SVNkeys.properties.SVNkeys
or
SVNkeysFilter
. For sake of
compactness the actual SVN keywords of this source follow. If you don't
see the something like SVNkeys
did work:Modifier and Type | Class and Description |
---|---|
protected class |
SVNkeys.MyTask
The single task for a file visited.
|
FileVisitor.Ask, FileVisitor.AskConsImpl, FileVisitor.AskGrafImpl
ComVar.Impl
Modifier and Type | Field and Description |
---|---|
String |
clBrace
Closing brace for keywords.
|
String |
dateDefault
Substitute for empty $Date$.
|
boolean |
dateDefaultToMod
For empty $Date$ insert the file's modification date.
|
boolean |
dateDefaultToNow
For empty $Date$ insert current time.
|
String |
dateFormat
Re-format the date; format String.
|
String |
dateKey
Keyword for Date.
|
String |
directory
Start directory.
|
String |
fieldLengthMarker
Field end marker keywords.
|
String |
filModEnc
Encoding of files to be modified.
|
String |
ignFilesWith
Text to mark excluded file.
|
boolean |
ignoreKeyCase
Ignore case for keywords.
|
boolean |
keepLastModif
Keep the file modification date, also with replacements.
|
int |
maxBraceDist
Maximal distance for keyword braces.
|
String |
opBrace
Opening brace for keywords.
|
boolean |
recursion
Visit (recursively) also sub-directories.
|
boolean |
reformatDate
Re-format the date.
|
boolean |
removeBraces
Remove the keyword braces.
|
boolean |
removeContent
Remove the keyword content.
|
String |
setOperator
Set operator for keywords.
|
boolean |
tabReplace
Replace Tabs by spaces.
|
int |
tabWidth
Replace tabs by that number of spaces.
|
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
Modifier and Type | Method and Description |
---|---|
int |
doIt()
Working method of SVNkeys.
|
static void |
main(String[] args)
Start method of SVNkeys.
|
int |
visit(File dD)
File visitor.
|
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, parsePartial, 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 filModEnc
public boolean recursion
public boolean tabReplace
tabWidth
public int tabWidth
tabReplace
public String opBrace
public String clBrace
public String setOperator
public int maxBraceDist
public String fieldLengthMarker
public boolean removeBraces
public boolean removeContent
public boolean ignoreKeyCase
public String dateKey
dateFormat
public boolean reformatDate
dateKey
public String dateFormat
TimeHelper.format(CharSequence, java.time.ZonedDateTime)
.dateKey
public boolean dateDefaultToNow
dateFormat
. If false just dateDefault
will be inserted instead.dateDefaultToMod
public boolean dateDefaultToMod
dateFormat
. This setting has
priority over dateDefaultToNow
and dateDefault
.keepLastModif
public String dateDefault
public boolean keepLastModif
public String ignFilesWith
FuR
public String directory
public static void main(String[] args)
args
- the application's start parameterpublic int visit(File dD)
visit
in interface FileVisitor
dD
- the file or directory to act upon or to determine a filter /
function response aboutdoUpDate()
public int doIt()
doIt
in class App
Prop
,
App.go(String[])
,
App.go(String[], String, CharSequence)
,
App.mainThread